[Kst] extragear/graphics/kst/src/libkstapp
Eli Fidler
eli at staikos.net
Fri May 4 18:22:24 CEST 2007
SVN commit 661114 by fidler:
fix for bug 144048: Legends ignore font colour
M +12 -0 kstviewlegend.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.cpp #661113:661114
@@ -245,6 +245,9 @@
rc.x = 0;
rc.y = _ascent;
rc.xStart = rc.x;
+ if (_parsedTitle->chunk) {
+ _parsedTitle->chunk->attributes.color = foregroundColor();
+ }
renderLabel(rc, _parsedTitle->chunk, _vectorsUsed, _scalarsUsed, _stringsUsed);
i = 1;
p.restore();
@@ -260,6 +263,9 @@
rc.x = 0;
rc.y = _ascent;
rc.xStart = rc.x;
+ if ((*it)->parsedLegendTag()->chunk) {
+ (*it)->parsedLegendTag()->chunk->attributes.color = foregroundColor();
+ }
renderLabel(rc, (*it)->parsedLegendTag()->chunk, _vectorsUsed, _scalarsUsed, _stringsUsed);
}
p.restore();
@@ -272,6 +278,9 @@
rc.x = 0;
rc.y = _ascent;
rc.xStart = rc.x;
+ if (_parsedTitle->chunk) {
+ _parsedTitle->chunk->attributes.color = foregroundColor();
+ }
renderLabel(rc, _parsedTitle->chunk, _vectorsUsed, _scalarsUsed, _stringsUsed);
p.translate(_titleWidth + _ascent,0);
}
@@ -285,6 +294,9 @@
rc.x = 0;
rc.y = _ascent;
rc.xStart = rc.x;
+ if ((*it)->parsedLegendTag()->chunk) {
+ (*it)->parsedLegendTag()->chunk->attributes.color = foregroundColor();
+ }
renderLabel(rc, (*it)->parsedLegendTag()->chunk, _vectorsUsed, _scalarsUsed, _stringsUsed);
p.translate((*it)->legendLabelSize().width() + _ascent,0);
}
More information about the Kst
mailing list