diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index dc4e1e37..5dd6fa57 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -64,7 +64,6 @@ #include "domain/UBGraphicsGroupContainerItem.h" #include "domain/UBItem.h" #include "board/UBFeaturesController.h" -#include "domain/UBGraphicsStrokesGroup.h" #include "gui/UBFeaturesWidget.h" diff --git a/src/core/UBPersistenceManager.cpp b/src/core/UBPersistenceManager.cpp index a3d63c12..afba962a 100644 --- a/src/core/UBPersistenceManager.cpp +++ b/src/core/UBPersistenceManager.cpp @@ -925,6 +925,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy) if(empty){ mSceneCache.removeScene(pDocumentProxy,0); delete theSoleScene; + theSoleScene = NULL; } else{ //the scene can contain Delegate buttons and the selection frame @@ -941,6 +942,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy) if(!usefulItemFound){ mSceneCache.removeScene(pDocumentProxy,0); delete theSoleScene; + theSoleScene = NULL; empty = true; } }