[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg Oliver.Kellogg at t-online.de
Sun Sep 7 13:34:03 UTC 2003


CVS commit by okellogg: 

Fix thinko.


  M +9 -28     umlview.cpp   1.80


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.79:1.80
@@ -1074,6 +1074,7 @@ void UMLView::contentsMousePressEvent(QM
         clearSelected();
 
-        if(m_CurrentCursor == WorkToolBar::tbb_Arrow)
+        if(m_CurrentCursor != WorkToolBar::tbb_Arrow)
                 return;
+        for (int i = 0; i < 4; i++) {   //four lines needed for rect.
         QCanvasLine* line = new QCanvasLine( canvas() );
         line->setPoints(x, y, x, y);
@@ -1081,26 +1082,6 @@ void UMLView::contentsMousePressEvent(QM
         line->setVisible(true);
         line->setZ(100);
-        m_SelectionRect.append(line);//four lines needed for rect.
-
-        line = new QCanvasLine( canvas() );
-        line->setPoints(x, y, x, y);
-        line->setPen( QPen(QColor("grey"), 0, DotLine) );
-        line->setVisible(true);
-        line->setZ(100);
-        m_SelectionRect.append(line);
-
-        line = new QCanvasLine( canvas() );
-        line->setPoints(x, y, x, y);
-        line->setPen( QPen(QColor("grey"), 0, DotLine) );
-        line->setVisible(true);
-        line->setZ(100);
-        m_SelectionRect.append(line);
-
-        line = new QCanvasLine( canvas() );
-        line->setPoints(x, y, x, y);
-        line->setPen( QPen(QColor("grey"), 0, DotLine) );
-        line->setVisible(true);
-        line->setZ(100);
         m_SelectionRect.append(line);
+        }
         m_bDrawRect = true;
 }






More information about the umbrello-devel mailing list