diff --git a/src/domain/UBGraphicsItemUndoCommand.cpp b/src/domain/UBGraphicsItemUndoCommand.cpp index 7653a054..4787aed5 100644 --- a/src/domain/UBGraphicsItemUndoCommand.cpp +++ b/src/domain/UBGraphicsItemUndoCommand.cpp @@ -128,7 +128,7 @@ void UBGraphicsItemUndoCommand::undo() QGraphicsItem* item = itRemoved.next(); if (item) { - if (UBItemLayerType::FixedBackground == item->data(UBGraphicsItemData::ItemLayerType)) + if (itemLayerType::BackgroundItem == item->data(UBGraphicsItemData::itemLayerType)) mScene->setAsBackgroundObject(item); else mScene->addItem(item);