[qet] [2111] delete unnecessary code |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2111
Author: blacksun
Date: 2013-04-15 14:07:59 +0200 (Mon, 15 Apr 2013)
Log Message:
-----------
delete unnecessary code
Modified Paths:
--------------
trunk/sources/editor/elementprimitivedecorator.cpp
Modified: trunk/sources/editor/elementprimitivedecorator.cpp
===================================================================
--- trunk/sources/editor/elementprimitivedecorator.cpp 2013-04-14 19:36:02 UTC (rev 2110)
+++ trunk/sources/editor/elementprimitivedecorator.cpp 2013-04-15 12:07:59 UTC (rev 2111)
@@ -37,11 +37,7 @@
if ((decorated_items_.count() == 1) && (decorated_items_.first() -> xmlName() == "line")) {
QRectF horto = decorated_items_.first() -> sceneGeometricRect();
if (!horto.width() || !horto.height()) {
- QRectF rect = getSceneBoundingRect(decorated_items_.first() -> toItem());
- foreach (CustomElementPart *item, decorated_items_) {
- rect = rect.united(getSceneBoundingRect(item -> toItem()));
- }
- return (rect);
+ return (getSceneBoundingRect(decorated_items_.first() -> toItem()));
}
}
QRectF rect = decorated_items_.first() -> sceneGeometricRect();