fixed an issue where eraseBackground then undo would make a PDF being partly attached as a background and behave as an object

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent cb5d2dba18
commit a76d0d85c1
  1. 2
      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);

Loading…
Cancel
Save