[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Wed Mar 19 16:09:06 UTC 2003


CVS commit by jriddell: 

Fix bug which caused red resize corner to be drawn on text label rather than note box


  M +4 -5      umlwidget.cpp   1.22


--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.21:1.22
@@ -442,10 +442,9 @@ void UMLWidget::drawSelected(QPainter * 
         p -> fillRect(offsetX, offsetY + h - s, s, s, brush);
         p -> fillRect(offsetX + w - s, offsetY, s, s, brush);
-        p->fillRect(offsetX + w - s, offsetY + h - s, s, s, brush);
 
-        if (getBaseType() == wt_Text || getBaseType() == wt_Box) {
-                QBrush brush(red);
-                p->fillRect(offsetX + w - s, offsetY + h - s, s, s, brush);
+        if (getBaseType() == wt_Note || getBaseType() == wt_Box) {
+                brush.setColor(red);
         }
+        p->fillRect(offsetX + w - s, offsetY + h - s, s, s, brush);
 }
 






More information about the umbrello-devel mailing list