From bddb4db2b81afedf196f268785b31bada61c52fb Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Tue, 13 May 2014 09:29:05 +0200 Subject: [PATCH] cosmetics --- src/board/UBBoardController.cpp | 1 - src/core/UBPersistenceManager.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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; } }