[Uml-devel] kdesdk/umbrello/umbrello

George Staikos staikos at kde.org
Tue Jun 3 15:56:05 UTC 2003


CVS commit by staikos: 

Sorry if this is not the right fix, but I get this crash too often, repeatably,
and with this patch everything works fine.


  M +2 -0      umlview.cpp   1.59


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.58:1.59
@@ -1146,4 +1146,5 @@ void UMLView::selectWidgets() {
                                 } else {
                                         AssociationWidget * a = static_cast<AssociationWidget *>( (static_cast<FloatingText *>(temp)) -> getAssoc() );
+                                        if (a) {
 
                                         a -> setSelected(true);
@@ -1197,4 +1198,5 @@ void UMLView::selectWidgets() {
                                                 m_SelectedList.append( text );
                                         }
+                                        } // if (a)
                                 }//end else
                         }//end if text






More information about the umbrello-devel mailing list