Summary: | KST Equations are KO when using vector/mean if the vector name contains special characters, it generates constant value of 0 | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Grégoire Verlut <gregoire.verlut> |
Component: | equations | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.0.1 | ||
Target Milestone: | 2.0.1 | ||
Platform: | Compiled Sources | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Grégoire Verlut
2010-09-03 14:33:30 UTC
The legend and labels are also not escaping the specials characters. Ie my vector "WGS84 Altitude [m]" becomes "WGS84 Altitude " when its name is used in legend/labels. As well the "insert scalar in label" is stuck with my vector because of the [] characters. Regards Grégoire Haven't we had that before? I partially 'fixed' this problem with _ in names by escaping the character '_' when used in automatic names. IE, "WGS84 Altitude [m]" would appear as "WGS84 Altitude \[m\]" in the kst UI, but as "WGS84 Altitude [m]" when shown in labels. We might be able to do better than this for '[]' though. I'll look into it. SVN commit 1192057 by netterfield: BUG: 250014 Handle special characters in field and vector names. i) the characters _^[] in field names are escaped with \ so they appear properly in automatically generated labels. So, a data vector of the field GY_AZ will appear in the UI as "GY\_AZ (V2)" and as GY_AZ in automatic labels. The same applies to scalars, strings, and matrixes. ii) the characters [] are removed from the descriptive names of vectors when they are used in equations. So a Vector called "WGS84 Altitude [m] (V4)" will appear in in the equation as "[WGS84 Altitude m (V4)]" but will otherwise work as expected. The same applies to matrixes and scalars. M +6 -1 src/libkst/datamatrix.cpp M +7 -1 src/libkst/datascalar.cpp M +7 -1 src/libkst/datastring.cpp M +9 -2 src/libkst/datavector.cpp M +2 -0 src/libkst/namedobject.cpp M +3 -1 src/libkstapp/equationdialog.cpp M +7 -2 src/libkstmath/enodes.cpp M +4 -4 tests/dirfile_maker/dirfile_maker.c WebSVN link: http://websvn.kde.org/?view=rev&revision=1192057 There is no version list for "Version Fixed in". Use Target Milestone as indicator when the bug was fixed. |