From e6b68ebb0c5d13121dbd2724c3909ff93a36a13b Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sun, 14 Apr 2013 12:53:39 +0000 Subject: [PATCH] Revert the way scaling operations get rounded for fix move/scale line primitive if horizontal or vertical git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2108 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/elementprimitivedecorator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/editor/elementprimitivedecorator.cpp b/sources/editor/elementprimitivedecorator.cpp index 81ba08491..4ff3f5f06 100644 --- a/sources/editor/elementprimitivedecorator.cpp +++ b/sources/editor/elementprimitivedecorator.cpp @@ -33,13 +33,12 @@ ElementPrimitiveDecorator::~ElementPrimitiveDecorator() { QRectF ElementPrimitiveDecorator::internalBoundingRect() const { if (!decorated_items_.count() || !scene()) return(QRectF()); - QRectF rect = decorated_items_.first() -> sceneGeometricRect(); + QRectF rect = getSceneBoundingRect(decorated_items_.first() -> toItem()); foreach (CustomElementPart *item, decorated_items_) { - rect = rect.united(item -> sceneGeometricRect()); + rect = rect.united(getSceneBoundingRect(item -> toItem())); } return(rect); } - /** @return the outer bounds of the decorator as a rectangle. */