From 9b41a7ed0d5af67bc2b5673f95d6197dfe20f4cf Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Tue, 1 Oct 2024 01:16:51 +0200 Subject: [PATCH] Fix CanvasSaverRunnable construction in WASM It was missing the new paintEngine parameter. --- src/libclient/document.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libclient/document.cpp b/src/libclient/document.cpp index 762fd08d4..bc6a38b31 100644 --- a/src/libclient/document.cpp +++ b/src/libclient/document.cpp @@ -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,