From 7ba25e9d5e3bcacd3ba4f8d78176ab8845adc58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Wed, 6 Dec 2017 17:26:54 +0100 Subject: [PATCH] adapted image transformation when setting an image as a background --- src/domain/UBGraphicsItemDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index c7c7098c..6d1065e5 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -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,