[Uml-devel] [Bug 137041] cannot move text and label correctly after enabling snap to grid

Oliver Kellogg okellogg at users.sourceforge.net
Tue Jun 19 05:55:51 UTC 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=137041         




------- Additional Comments From okellogg users sourceforge net  2007-06-19 07:55 -------
SVN commit 677410 by okellogg:

moveWidgetBy(): Remove unwarranted return.
CCBUG:137041


 M  +4 -3      floatingtextwidgetcontroller.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/floatingtextwidgetcontroller.cpp #677409:677410
 @ -9,8 +9,11  @
  *   Umbrello UML Modeller Authors <uml-devel uml sf net>                  *
  ***************************************************************************/
 
+// own header
+#include "floatingtextwidgetcontroller.h"
+// qt/kde includes
+#include <kdebug.h>
 // app includes
-#include "floatingtextwidgetcontroller.h"
 #include "floatingtextwidget.h"
 #include "messagewidget.h"
 #include "objectwidget.h"
 @ -74,8 +77,6  @
                (m_movementDirectionY > 0 && m_unconstrainedPositionY < m_floatingTextWidget->getY()) ) {
         newY = m_unconstrainedPositionY;
         m_movementDirectionY = 0;
-    } else {
-        return;
     }
 
     m_floatingTextWidget->setX(newX);




More information about the umbrello-devel mailing list