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 :