diff --git a/ChangeLog.txt b/ChangeLog.txt index 5722824dd..fe616e5ad 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,4 +1,5 @@ # Version 0.4.3 +- Using QGraphicsScene instead of VMainGraphicsScene caused a crash. - Fixed bug disabling tool True darts. - Fixed wrong calculation tool True darts. - [#405] Fixed crash after deleting first pattern piece in the list. diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 8437c398a..b5224567c 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -32,7 +32,7 @@ #include "../vobj/vobjpaintdevice.h" #include "../vdxf/vdxfpaintdevice.h" #include "dialogs/dialoglayoutsettings.h" - +#include "../vwidgets/vmaingraphicsscene.h" #include "../vlayout/vlayoutgenerator.h" #include "dialogs/dialoglayoutprogress.h" #include "dialogs/dialogsavelayout.h" @@ -441,7 +441,7 @@ void MainWindowsNoGUI::PrepareDetailsForLayout(const QHash *de //--------------------------------------------------------------------------------------------------------------------- void MainWindowsNoGUI::InitTempLayoutScene() { - tempSceneLayout = new QGraphicsScene(); + tempSceneLayout = new VMainGraphicsScene(); tempSceneLayout->setBackgroundBrush( QBrush(QColor(Qt::gray), Qt::SolidPattern) ); } @@ -507,7 +507,7 @@ void MainWindowsNoGUI::CreateScenes() { for (int i=0; isetBackgroundBrush(QBrush(QColor(Qt::gray), Qt::SolidPattern)); scene->addItem(shadows.at(i)); scene->addItem(papers.at(i));