[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesdk/umbrello/umbrello
From:       John Ratke <jratke () comcast ! net>
Date:       2003-10-19 17:21:46
[Download RAW message or body]

CVS commit by jratke: 


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

CCMAIL: 57882-done@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
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic