author | zautrix <zautrix> | 2005-02-19 16:54:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-19 16:54:24 (UTC) |
commit | 11b5b0eb24cfb943df106f7ee97646955bec0fd3 (patch) (side-by-side diff) | |
tree | ca62b4515977e0538fff0b1ee15a25bd8aed808e /korganizer | |
parent | e15d171a0630656b6e4a66d6cab6a7d64a37434b (diff) | |
download | kdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.zip kdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.tar.gz kdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.tar.bz2 |
fixiiii
-rw-r--r-- | korganizer/koagendaitem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index cead612..7b29ce7 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp @@ -415,7 +415,10 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) } } QRect dr; + if ( w + x > parentWidget()->width() ) + w = parentWidget()->width()-x; paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); + //qDebug("%d %d %d %d ", x, yy, w, h ); if ( mIncidence->cancelled() ){ if ( ! small ) { QFontMetrics fm ( paint->font() ); |