@ -246,7 +246,11 @@ void UBGraphicsItemUndoCommand::redo()
polygonItem->strokesGroup()->removeFromGroup(polygonItem);
}
mScene->removeItem(item);
if (itemLayerType::BackgroundItem == item->data(UBGraphicsItemData::itemLayerType))
mScene->setAsBackgroundObject(nullptr);
else
if (bApplyTransform)
item->setTransform(t);
@ -1476,6 +1476,7 @@ void UBGraphicsScene::clearContent(clearCase pCase)
if(mBackgroundObject){
removeItem(mBackgroundObject);
removedItems << mBackgroundObject;
mBackgroundObject = nullptr;
break;