[Uml-devel] branches/work/soc-umbrello/umbrello
Gopala Krishna A
krishna.ggk at gmail.com
Tue Sep 2 19:47:18 UTC 2008
SVN commit 856407 by gopala:
Fix aligning of the TextItems in TextItemGroup::setGroupGeometry
method. The bug was because margin part wasn't deducted from the
width being set for the TextItems.
M +3 -1 textitemgroup.cpp
--- branches/work/soc-umbrello/umbrello/textitemgroup.cpp #856406:856407
@@ -182,8 +182,10 @@
qreal x = rect.left() + m_margin;
qreal y = (rect.top() + m_margin) + spacing;
+
+ qreal textWidth = rect.width() - 2 * margin();
foreach(TextItem *item, visibleItems) {
- item->setTextWidth(rect.width());
+ item->setTextWidth(textWidth);
item->setPos(x, y);
y += item->height() + spacing;
}
More information about the umbrello-devel
mailing list