From 58b994ed07f314fe9f216a3bf3450ce845b48ba0 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 14 Sep 2012 15:22:28 +0200 Subject: [PATCH] fixed issue with erase background when the is no background --- src/domain/UBGraphicsScene.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index ec2489d4..746ad4db 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -1095,8 +1095,10 @@ void UBGraphicsScene::clearContent(clearCase pCase) switch (pCase) { case clearBackground : - removeItem(mBackgroundObject); - removedItems << mBackgroundObject; + if(mBackgroundObject){ + removeItem(mBackgroundObject); + removedItems << mBackgroundObject; + } break; case clearItemsAndAnnotations :