[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Jan 29 22:32:01 UTC 2006
SVN commit 503738 by okellogg:
apply commit 503737 from branches/KDE/3.5
M +4 -4 associationwidget.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/associationwidget.cpp #503737:503738
@@ -1726,7 +1726,7 @@
// is at top or bottom edge of widget.
bool is_top_or_bottom(false);
UMLWidget *pWidget(0);
-
+
if (role == tr_MultiA || role == tr_ChangeA || role == tr_RoleAName) {
p = m_LinePath.getPoint( 0 );
q = m_LinePath.getPoint( 1 );
@@ -1756,11 +1756,11 @@
if (role == tr_MultiA || role == tr_MultiB) {
const bool isHorizontal = (p.y() == q.y());
- const int atTop = p.y() + SPACE;
- const int atBottom = p.y() - SPACE - textH;
+ const int atBottom = p.y() + SPACE;
+ const int atTop = p.y() - SPACE - textH;
const int atLeft = p.x() - SPACE - textW;
const int atRight = p.x() + SPACE;
- y = (p.y() > q.y()) == isHorizontal ? atTop : atBottom;
+ y = (p.y() > q.y()) == isHorizontal ? atBottom : atTop;
x = (p.x() < q.x()) == isHorizontal ? atRight : atLeft;
} else if (role == tr_ChangeA || role == tr_ChangeB) {
More information about the umbrello-devel
mailing list