Summary: | Label font color not respected | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Andrew Walker <arwalker> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Andrew Walker
2006-05-15 22:00:37 UTC
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; |