Skip to content

Commit

Permalink
Fix CanvasSaverRunnable construction in WASM
Browse files Browse the repository at this point in the history
It was missing the new paintEngine parameter.
  • Loading branch information
askmeaboutlo0m committed Sep 30, 2024
1 parent 2f8d5cf commit 9b41a7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libclient/document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,9 @@ void Document::downloadCanvasState(
const drawdance::CanvasState &canvasState)
{
QString path = tempDir->filePath(fileName);
CanvasSaverRunnable *saver =
new CanvasSaverRunnable(canvasState, type, path, tempDir);
CanvasSaverRunnable *saver = new CanvasSaverRunnable(
canvasState, type, path, m_canvas ? m_canvas->paintEngine() : nullptr,
tempDir);
saver->setAutoDelete(false);
connect(
saver, &CanvasSaverRunnable::saveComplete, this,
Expand Down

0 comments on commit 9b41a7e

Please sign in to comment.