[Uml-devel] kdesdk/umbrello/umbrello
Klas Kalass
klas.kalass at gmx.de
Fri Mar 21 07:58:02 UTC 2003
CVS commit by kalass:
only use visible canvas items for calculation of the diagram size
M +14 -12 umlview.cpp 1.47
--- kdesdk/umbrello/umbrello/umlview.cpp #1.46:1.47
@@ -876,4 +876,5 @@ QRect UMLView::getDiagramRect() {
UMLWidget *obj;
while ( (obj=(UMLWidget*)it.current()) != 0 ) {
+ if (obj->isVisible()) {
int objEndX = static_cast<int>(obj -> x()) + obj -> width();
int objEndY = static_cast<int>(obj -> y()) + obj -> height();
@@ -888,4 +889,5 @@ QRect UMLView::getDiagramRect() {
if(endy <= objEndY)
endy = objEndY;
+ }
++it;
}
More information about the umbrello-devel
mailing list