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
This commit is contained in:
scorpio810
2013-04-14 12:53:39 +00:00
parent 3dd73325d3
commit e6b68ebb0c

View File

@@ -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.
*/