Version: 1.8.0_svn_914813 (using KDE 3.5.10) Compiler: gcc (GCC) 4.2.4 OS: Linux Installed from: Compiled From Sources Text following a superscript or subscript control character (^ or _) in a legend text is not rendered in the legend. This worked in 1.7.0. Steps to reproduce: 1. create a plot with a curve 2. Enable the legend in the plot by selecting "Show" check box under "Legend" in the "Appearance" tab of the Edit Plot dialogue. 3. change the curve's legend text in the Edit Curve dialogue. Set the legend to, say, "a b^c d" Result: The legend text shows up as "a b". ie. all text after the ^ is ignored. Expected Result: The legend text should read "a bc d" with the "c" in superscript.
I'm unable to reproduce this with the latest code. Could you attach a kst file (as simple as possible) that shows the problem. Thanks
Created attachment 30500 [details] Testcase A test .kst file exhibiting the bug
Created attachment 30501 [details] Exported PNG showing missing legend text And here's the screenshot
The problem is not with the text per se, but with the colours used to display the text. Following the ^ or _ the font colour reverts to the default rather than that specified by the user. This can cause the rest of the text to become invisible if the legend colour is the same as the font default colour.
SVN commit 914906 by arwalker: BUG:181540 correctly set default font color for legend text M +1 -0 kstviewlegend.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=914906