diff --git a/src/vector/vraster.cpp b/src/vector/vraster.cpp index 1c72f78284..8f638b686d 100644 --- a/src/vector/vraster.cpp +++ b/src/vector/vraster.cpp @@ -238,18 +238,16 @@ static void rleGenerationCb(int count, const SW_FT_Span *spans, void *user) } struct RleTask { - RleTask() { receiver = sender.get_future(); } std::promise sender; - std::future receiver; - bool stroke; VPath path; VRle rle; - FillRule fillRule; - CapStyle cap; - JoinStyle join; float width; float meterLimit; VRect clip; + FillRule fillRule; + CapStyle cap; + JoinStyle join; + bool stroke; VRle operator()(FTOutline &outRef, SW_FT_Stroker &stroker); void render(FTOutline &outRef); }; @@ -363,7 +361,7 @@ public: std::future async(RleTask *task) { - auto receiver = std::move(task->receiver); + auto receiver = std::move(task->sender.get_future()); auto i = _index++; for (unsigned n = 0; n != _count; ++n) {