[Kst] [Bug 127393] Label font color not respected

George Staikos staikos at kde.org
Mon May 15 22:27:33 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=127393         
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2006-05-15 22:27 -------
SVN commit 541263 by staikos:

use the GUI-selected pen
BUG: 127393


 M  +1 -3      kstviewlabel.cpp  
 M  +1 -1      labelrenderer.cpp  
 M  +1 -0      labelrenderer.h  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlabel.cpp #541262:541263
 @ -316,9 +316,7  @
   p.translate(tx, ty);
   p.rotate(_rotation);
 
-  QPen pen;
-  pen.setColor(foregroundColor());
-  p.setPen(pen);
+  rc.pen = foregroundColor();
 
   rc.xStart = rc.x;
 #ifdef BENCHMARK
--- trunk/extragear/graphics/kst/src/libkstapp/labelrenderer.cpp #541262:541263
 @ -58,7 +58,7  @
     if (rc.p && fi->attributes.color.isValid()) {
       rc.p->setPen(fi->attributes.color);
     } else if (rc.p) {
-      rc.p->setPen(QColor(0, 0, 0));
+      rc.p->setPen(rc.pen);
     }
     rc.setFont(f);
 
--- trunk/extragear/graphics/kst/src/libkstapp/labelrenderer.h #541262:541263
 @ -122,6 +122,7  @
   int precision;
   bool substitute;
   QValueVector<DataRef> *_cache;
+  QPen pen;
   
   private:
     QFont _font;


More information about the Kst mailing list