Summary: | Legends ignore font colour | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | D. V. Wiebe <dvw> |
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: | ||
Sentry Crash Report: | |||
Attachments: |
Proposed patch
Proposed patch |
Description
D. V. Wiebe
2007-04-10 23:44:56 UTC
Created attachment 20233 [details]
Proposed patch
Created attachment 20234 [details]
Proposed patch
Looks fine, but everything should go into 1.5 branch now But this should be back-ported to 1.4.1 once it is re-opened.
I am keeping track in RELEASE_PLAN what bugs need to be backported to 1.4.1
once resolved.
> ------- Additional Comments From treat kde org 2007-04-12 18:09 -------
> Looks fine, but everything should go into 1.5 branch now
SVN commit 653135 by arwalker: BUG:144048 Make legend respect font color M +12 -0 kstviewlegend.cpp --- branches/work/kst/1.5/kst/src/libkstapp/kstviewlegend.cpp #653134:653135 @@ -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); } |