From c9d68f9ea6fd20e1223f86da95a6b4b779ba3a90 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 13 Jul 2019 16:57:27 +0300 Subject: [PATCH] Experimental change. Free objects we no longer need. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index ff88eba71..b78c34ad8 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -5339,6 +5339,12 @@ bool MainWindow::DoExport(const VCommandLinePtr &expParams) } listDetails = PrepareDetailsForLayout(details); + if (not VApplication::IsGUIMode()) + { + sceneDraw->clear(); + sceneDetails->clear(); + } + const bool exportOnlyDetails = expParams->IsExportOnlyDetails(); if (exportOnlyDetails) {