[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jan 27 23:45:15 CET 2006


SVN commit 503029 by arwalker:

Revert changes that were not part of fix for 120884

 M  +2 -10     kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #503028:503029
@@ -331,11 +331,7 @@
   if (p.type() == KstPainter::P_PRINT ||
       p.type() == KstPainter::P_EXPORT) {
     if (_autoResize) {
-      if (_parent) {
-        adjustSizeForText(_parent->geometry());
-      } else {
-        adjustSizeForText(p.window());
-      }
+      adjustSizeForText(p.window());
     } else {
       computeTextSize(_parsed);
     }
@@ -354,11 +350,7 @@
     }
     if (dirty()) {
       if (_autoResize) {
-        if (_parent) {
-          adjustSizeForText(_parent->geometry());
-        } else {
-          adjustSizeForText(p.window());
-        }
+        adjustSizeForText(p.window());
         drawToBuffer(_parsed);
       } else {
         computeTextSize(_parsed);


More information about the Kst mailing list