[qet] [2108] Revert the way scaling operations get rounded for fix move/ scale line primitive if horizontal or vertical |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2108
Author: scorpio810
Date: 2013-04-14 14:53:39 +0200 (Sun, 14 Apr 2013)
Log Message:
-----------
Revert the way scaling operations get rounded for fix move/scale line primitive if horizontal or vertical
Modified Paths:
--------------
trunk/sources/editor/elementprimitivedecorator.cpp
Modified: trunk/sources/editor/elementprimitivedecorator.cpp
===================================================================
--- trunk/sources/editor/elementprimitivedecorator.cpp 2013-04-13 14:02:47 UTC (rev 2107)
+++ trunk/sources/editor/elementprimitivedecorator.cpp 2013-04-14 12:53:39 UTC (rev 2108)
@@ -33,13 +33,12 @@
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.
*/