Commit 58b994ed authored by Claudio Valerio's avatar Claudio Valerio

fixed issue with erase background when the is no background

parent 2c7eda9c
......@@ -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 :
......
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