[Uml-devel] kdesdk/umbrello/umbrello

John Ratke jratke at comcast.net
Sun Oct 19 10:34:03 UTC 2003


CVS commit by jratke: 


Completely fix the problem of text extending out of note widgets this time.

CCMAIL: 57882-done at bugs.kde.org


  M +10 -0     notewidget.cpp   1.15


--- kdesdk/umbrello/umbrello/notewidget.cpp  #1.14:1.15
@@ -174,7 +174,9 @@ void NoteWidget::drawText(QPainter & p, 
                                 }//end if
                                 else
+                                {
                                         if ( textY > height )
                                                 return;
                                         p.drawText( offsetX + textX, offsetY + textY , textWidth, fontHeight, AlignLeft, word );
+                                }
                         }//end if
                         textX = margin;
@@ -195,5 +197,9 @@ void NoteWidget::drawText(QPainter & p, 
                                 }//end if
                                 else
+                                {
+                                        if ( textY > height )
+                                                return;
                                         p.drawText( offsetX + textX, offsetY + textY , textWidth, fontHeight, AlignLeft, word );
+                                }
                                 textX += textWidth;
                         }//end if
@@ -215,5 +221,9 @@ void NoteWidget::drawText(QPainter & p, 
                 }//end if
                 else
+                {
+                        if ( textY > height )
+                                return;
                         p.drawText( offsetX + textX, offsetY + textY , textWidth, fontHeight, AlignLeft, word );
+                }
         }//end if
 }






More information about the umbrello-devel mailing list