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

List:       kde-commits
Subject:    KDE/kdelibs/plasma/widgets
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-09-13 17:17:04
Message-ID: 1252862224.048704.7556.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1022991 by aseigo:

put it in the template too


 M  +4 -0      widget.cpp.template  


--- trunk/KDE/kdelibs/plasma/widgets/widget.cpp.template #1022990:1022991
@@ -47,6 +47,8 @@
     void setPixmap(<Name> *q)
     {
         if (imagePath.isEmpty()) {
+            delete svg;
+            svg = 0;
             return;
         }
 
@@ -64,6 +66,8 @@
             QPainter p(&pm);
             svg->paint(&p, pm.rect());
         } else {
+            delete svg;
+            svg = 0;
             pm = QPixmap(absImagePath);
         }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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