Version: 2.0.1 OS: MS Windows I try to create an equation object from the data manager. I entered the expression, in my case a constant expression: [WGS84 Altitude [m]:Mean (X149)] and the generated y vector contains only 0 value. However when viewing the scalars : Data > View Scalars... I can see the value of [WGS84 Altitude [m]:Mean (X149)] I guess it comes from the "[m]" which is not escaped Reproducible: Always Steps to Reproduce: just use a vector which name contains '[' or ']' Actual Results: the equation expression is not stored and the generated y vector contains 0 Expected Results: the equation should have been stored in kst and the generated y vector should contain the computed value OS: Windows 32-Bit
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.