diff --git a/src/export.cpp b/src/export.cpp index 4c34811d..b2dda192 100644 --- a/src/export.cpp +++ b/src/export.cpp @@ -1119,6 +1119,5 @@ void SolveSpaceUI::ExportMeshAsThreeJsTo(FILE *f, const std::string &filename, void SolveSpaceUI::ExportAsPngTo(const std::string &filename) { screenshotFile = filename; // The rest of the work is done in the next redraw. - SS.GW.Paint(); + InvalidateGraphics(); } -