diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 6f1ac6143..acf099064 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -2561,7 +2561,7 @@ auto VPMainWindow::GeneratePdfTiledFile(const VPSheetPtr &sheet, const VPExportD sheet->SceneData()->SetTextAsPaths(data.textAsPaths); auto Clean = qScopeGuard( - [sheet, data]() + [sheet]() { sheet->SceneData()->SetTextAsPaths(false); sheet->SceneData()->CleanAfterExport(); // Will restore the grainlines automatically