[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2007-10-26 16:35:26
Message-ID: 1193416526.700801.21177.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 729678 by aseigo:

don't try and paint on a null pixmap


 M  +4 -0      tasks.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/tasks.cpp #729677:729678
@@ -353,6 +353,10 @@
 
 void AbstractTaskItem::drawTextLayout(QPainter *painter, const QTextLayout &layout, \
const QRect &rect) const  {
+    if (rect.width() < 1 || rect.height() < 1) {
+        return;
+    }
+
     QPixmap pixmap(rect.size());
     pixmap.fill(Qt::transparent);
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic