mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -33,13 +33,12 @@ ElementPrimitiveDecorator::~ElementPrimitiveDecorator() {
|
|||||||
QRectF ElementPrimitiveDecorator::internalBoundingRect() const {
|
QRectF ElementPrimitiveDecorator::internalBoundingRect() const {
|
||||||
if (!decorated_items_.count() || !scene()) return(QRectF());
|
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_) {
|
foreach (CustomElementPart *item, decorated_items_) {
|
||||||
rect = rect.united(item -> sceneGeometricRect());
|
rect = rect.united(getSceneBoundingRect(item -> toItem()));
|
||||||
}
|
}
|
||||||
return(rect);
|
return(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return the outer bounds of the decorator as a rectangle.
|
@return the outer bounds of the decorator as a rectangle.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user