[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Wed May 19 09:34:06 UTC 2004
CVS commit by okellogg:
Apply BlockMoveDuringLoad.diff by Achim Spangler.
M +14 -0 umlwidget.cpp 1.81
--- kdesdk/umbrello/umbrello/umlwidget.cpp #1.80:1.81
@@ -744,4 +744,18 @@ void UMLWidget::removeAssoc(AssociationW
void UMLWidget::adjustAssocs(int x, int y)
{
+ // 2004-04-30: Achim Spangler
+ // don't adjust Assocs on file load, as
+ // the original positions, which are stored in XMI
+ // should be reproduced exactly
+ // ( don't try to reposition assocs as long
+ // as file is only partly loaded -> reposition
+ // could be misguided )
+ /// @todo avoid trigger of this event during load
+ if ( m_pView->getDocument()->loading() ) {
+ // don't recalculate the assocs during load of XMI
+ // -> return immediately without action
+ kdDebug() << "UMLWidget::adjustAssocs() called during load of XMI" << endl;
+ return;
+ }
AssociationWidgetListIt assoc_it(m_Assocs);
AssociationWidget* assocwidget = 0;
More information about the umbrello-devel
mailing list