Summary: | Note items: Lots of text in multiple lines--can leave trash on drag | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Stevan White <stevan_white> |
Component: | general | Assignee: | John Ratke <jratke> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.1.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | some text outside the notewidget |
Description
Stevan White
2003-04-30 09:33:54 UTC
Subject: kdesdk/umbrello/umbrello CVS commit by jratke: Fix text with multiple new lines extending out of note widget. CCMAIL: 57882-done@bugs.kde.org M +2 -0 notewidget.cpp 1.13 --- kdesdk/umbrello/umbrello/notewidget.cpp #1.12:1.13 @@ -178,4 +178,6 @@ void NoteWidget::drawText(QPainter & p, }//end if else + if ( textY > height ) + return; p.drawText( offsetX + textX, offsetY + textY , textWidth, fontHeight, AlignLeft, word ); }//end if Created attachment 2755 [details]
some text outside the notewidget
It still doesn't work in some cases. I entered the following data into the widget and resized it a lot. I'm able to reproduce the picture I attached with the following text in the note: Subject: kdesdk/umbrello/umbrello 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 } I no longer see this effect in 1.2.1 |