[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/soc-umbrello/umbrello
From: Gopala Krishna A <krishna.ggk () gmail ! com>
Date: 2008-09-02 19:47:18
Message-ID: 1220384838.953549.4690.nullmailer () svn ! kde ! org
[Download RAW message or body]
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;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic