Commit bddb4db2 authored by Claudio Valerio's avatar Claudio Valerio

cosmetics

parent e34ba321
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
#include "domain/UBGraphicsGroupContainerItem.h" #include "domain/UBGraphicsGroupContainerItem.h"
#include "domain/UBItem.h" #include "domain/UBItem.h"
#include "board/UBFeaturesController.h" #include "board/UBFeaturesController.h"
#include "domain/UBGraphicsStrokesGroup.h"
#include "gui/UBFeaturesWidget.h" #include "gui/UBFeaturesWidget.h"
......
...@@ -925,6 +925,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy) ...@@ -925,6 +925,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy)
if(empty){ if(empty){
mSceneCache.removeScene(pDocumentProxy,0); mSceneCache.removeScene(pDocumentProxy,0);
delete theSoleScene; delete theSoleScene;
theSoleScene = NULL;
} }
else{ else{
//the scene can contain Delegate buttons and the selection frame //the scene can contain Delegate buttons and the selection frame
...@@ -941,6 +942,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy) ...@@ -941,6 +942,7 @@ bool UBPersistenceManager::isEmpty(UBDocumentProxy* pDocumentProxy)
if(!usefulItemFound){ if(!usefulItemFound){
mSceneCache.removeScene(pDocumentProxy,0); mSceneCache.removeScene(pDocumentProxy,0);
delete theSoleScene; delete theSoleScene;
theSoleScene = NULL;
empty = true; empty = true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment