[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Sun Dec 18 02:18:58 CET 2005


SVN commit 489321 by arwalker:

BUG:118148 no longer draw to the back buffer when printing an autoresize label. It wastes time and messes up the repainting of autoresize labels as the back buffer still holds the text size used when printing.

 M  +2 -5      kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #489320:489321
@@ -164,9 +164,6 @@
   if (!_parsed) {
     reparse();
   }
-  if (_parsed) {
-    drawToBuffer(_parsed);
-  }
 }
 
 
@@ -343,14 +340,14 @@
     }
 
     drawToPainter(_parsed, p);
-    //setDirty();
   } else {
     if (p.type() == KstPainter::P_UPDATE) {
       setDirty();
     }
     if (dirty()) {
       if (_autoResize) {
-        adjustSizeForText(p.window()); // calls computeTextSize and drawToBuffer
+        adjustSizeForText(p.window());
+        drawToBuffer(_parsed);
       } else {
         computeTextSize(_parsed);
         drawToBuffer(_parsed);


More information about the Kst mailing list