From 11b5b0eb24cfb943df106f7ee97646955bec0fd3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 19 Feb 2005 16:54:24 +0000 Subject: fixiiii --- 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() ); -- cgit v0.9.0.2