[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Oct 29 05:08:29 UTC 2005
SVN commit 475465 by okellogg:
apply commit 475464 from branches/KDE/3.5
M +3 -1 actorwidget.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/actorwidget.cpp #475464:475465
@@ -38,7 +38,9 @@
const int textWidth = fm.width(getName());
const int fontHeight = fm.lineSpacing();
const int a_height = h - fontHeight - A_MARGIN;
- const int a_width = (a_height/2 > w || w > textWidth + A_MARGIN * 2 ? w : a_height/2);
+ const int h2 = a_height / 2;
+ const int w2 = w - A_MARGIN * 2;
+ const int a_width = (h2 > w2 || w > textWidth + A_MARGIN * 2 ? w2 : h2);
const int middleX = w / 2;
const int thirdY = a_height / 3;
More information about the umbrello-devel
mailing list