- Don't draw on null pixmaps

svn path=/trunk/KDE/kdepim/; revision=764405
wilder-work
Thomas McGuire 18 years ago
parent 0e57b31419
commit 5bc0d5b4e3
  1. 10
      headeritem.cpp

@ -322,9 +322,13 @@ const QPixmap *HeaderItem::pixmap(int col) const
if ( !headers->mPaintInfo.showTodo ) if ( !headers->mPaintInfo.showTodo )
if ( status.isTodo() ) pixmaps << *KMHeaders::pixTodo; if ( status.isTodo() ) pixmaps << *KMHeaders::pixTodo;
static QPixmap mergedpix; if ( !pixmaps.isEmpty() ) {
mergedpix = pixmapMerge( pixmaps ); static QPixmap mergedpix;
return &mergedpix; mergedpix = pixmapMerge( pixmaps );
return &mergedpix;
}
else
return 0;
} }
else if ( col == headers->paintInfo()->statusCol ) { else if ( col == headers->paintInfo()->statusCol ) {
return statusIcon(msgBase); return statusIcon(msgBase);

Loading…
Cancel
Save