-rw-r--r-- | korganizer/koagenda.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 9b817bc..01cef35 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -1915,8 +1915,12 @@ void KOAgenda::computeSizes() QPixmap* paintPixAll = KOAgendaItem::paintPixAllday(); - if ( (paintPixAll->width() < cw || paintPixAll->height() < ch) && cw > 0 && ch > 0 ) + if ( (paintPixAll->width() < cw || paintPixAll->height() < ch) && cw > 0 && ch > 0 ) { + //qDebug("paintPixAll->resize "); paintPixAll->resize( cw, ch ); + } } else { QPixmap* paintPix = KOAgendaItem::paintPix(); - if ( paintPix->width() < cw || paintPix->height() < ch ) - KOAgendaItem::resizePixmap( cw , ch ); + if ( paintPix->width() < cw || paintPix->height() < ch ) { + //qDebug("paintPix->resize "); + paintPix->resize( cw , ch ); + } } |