[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Tue Aug 26 11:59:05 UTC 2003


CVS commit by jriddell: 

quick fix for beastie 63115: Sequence diagram message arrow 
allows squence diagram message creation when the object widget is selected


  M +5 -2      umlview.cpp   1.70
  M +1 -1      umlwidget.cpp   1.39


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.69:1.70
@@ -2331,5 +2330,9 @@ bool UMLView::allocateMouseReleaseEvent(
         //may not be over it, but should still get the event.
 
-        if( m_pOnWidget ) {
+        //cursor tests are to stop this being wrongly used when
+        //adding a message to a sequence diagram when the object is selected
+        if( m_pOnWidget &&
+            (m_CurrentCursor == WorkToolBar::tbb_Seq_Message_Synchronous ||
+             m_CurrentCursor == WorkToolBar::tbb_Seq_Message_Asynchronous) ) {
                 m_pOnWidget -> mouseReleaseEvent( me );
                 return true;






More information about the umbrello-devel mailing list