[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Wed Aug 27 13:01:13 UTC 2003


CVS commit by jriddell: 

prevent compiler warning


  M +3 -3      nodewidget.cpp   1.6


--- kdesdk/umbrello/umbrello/nodewidget.cpp  #1.5:1.6
@@ -89,5 +89,5 @@ void NodeWidget::draw(QPainter & p, int 
 
         if (stereotype != "") {
-                p.drawText(offsetX, bodyOffsetY + (bodyHeight*0.5) - fontHeight,
+                p.drawText(offsetX, (int)(bodyOffsetY + (bodyHeight*0.5) - fontHeight),
                            bodyWidth, fontHeight, AlignCenter, "<< " + stereotype + " >>");
         }
@@ -107,8 +107,8 @@ void NodeWidget::draw(QPainter & p, int 
 
         if (lines == 1) {
-                p.drawText(offsetX, bodyOffsetY + (bodyHeight*0.5) - (fontHeight*0.5),
+                p.drawText(offsetX, (int)(bodyOffsetY + (bodyHeight*0.5) - (fontHeight*0.5)),
                            bodyWidth, fontHeight, AlignCenter, name);
         } else {
-                p.drawText(offsetX, bodyOffsetY + (bodyHeight*0.5),
+                p.drawText(offsetX, (int)(bodyOffsetY + (bodyHeight*0.5)),
                            bodyWidth, fontHeight, AlignCenter, name);
         }






More information about the umbrello-devel mailing list