Commit 7ba25e9d authored by Clément Fauconnier's avatar Clément Fauconnier

adapted image transformation when setting an image as a background

parent c6c0120a
......@@ -618,7 +618,7 @@ void UBGraphicsItemDelegate::setAsBackground()
item->resetTransform();
item->setPos(item->sceneBoundingRect().width()/-2., item->sceneBoundingRect().height()/-2.);
scene->setAsBackgroundObject(item);
scene->setAsBackgroundObject(item, true);
UBGraphicsItemTransformUndoCommand *uc =
new UBGraphicsItemTransformUndoCommand(mDelegated,
......
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