[Uml-devel] branches/work/soc-umbrello/umbrello
Gopala Krishna A
krishna.ggk at gmail.com
Fri Jul 25 12:26:52 UTC 2008
SVN commit 837670 by gopala:
Fixed alignment for topmost TextItem in TextItemGroup::setGroupGeometry method.
M +2 -2 textitemgroup.cpp
--- branches/work/soc-umbrello/umbrello/textitemgroup.cpp #837669:837670
@@ -158,9 +158,9 @@
}
}
- qreal spacing = (rect.height() - minSize.height()) / visibleItems.count();
+ qreal spacing = (rect.height() - minSize.height()) / (visibleItems.count() + 1);
qreal x = rect.left();
- qreal y = rect.top();
+ qreal y = rect.top() + spacing;
foreach(TextItem *item, visibleItems) {
item->setTextWidth(rect.width());
More information about the umbrello-devel
mailing list