[Uml-devel] [Bug 121238] Sequencediagram: messages as constructor works only properly at 100% zoom

Oliver Kellogg okellogg at users.sourceforge.net
Thu Mar 2 14:54:02 UTC 2006


------- 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=121238         
okellogg users sourceforge net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From okellogg users sourceforge net  2006-03-02 23:53 -------
SVN commit 515177 by okellogg:

mouseRelease(): Reuse Yan Morin's drag'n'drop patch from
http://www.geeksoc.org/~jr/umbrello/uml-devel/9259.html
BUG:121238


 M  +7 -6      toolbarstatemessages.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/toolbarstatemessages.cpp #515176:515177
 @ -73,12 +73,13  @
         UMLWidget* obj = 0;
         while ( (obj = it.current()) != 0 ) {
             ++it;
-            if ( obj->isVisible() &&
-                    obj->getBaseType() == Uml::wt_Object &&
-                    obj->onWidget(ome->pos()) ) {
-                clickedOnWidget = static_cast<ObjectWidget*>(obj);
-                isCreationMessage = true;
-                break;
+            if (obj->isVisible() && obj->getBaseType() == Uml::wt_Object) {
+                const QPoint zoomAdjustedPos = (ome->pos() * 100) / m_pUMLView->getZoom();
+                if (obj->onWidget(zoomAdjustedPos)) {
+                    clickedOnWidget = static_cast<ObjectWidget*>(obj);
+                    isCreationMessage = true;
+                    break;
+                }
             }
         }
     }




More information about the umbrello-devel mailing list