[Kst] branches/work/kst/portto4/kst/src/libkst

Peter Kümmel syntheticpp at gmx.net
Thu Feb 10 11:22:42 CET 2011


SVN commit 1219701 by kuemmel:

catch buggy units

 M  +3 -0      datavector.cpp  


--- branches/work/kst/portto4/kst/src/libkst/datavector.cpp #1219700:1219701
@@ -324,6 +324,9 @@
       // Apparently some people already add the square brackets in the unit name - avoid having two brackets
       if (units.startsWith("[")) {
         label += " " + units;
+        if (!label.endsWith("]")) {
+          label += "\\]";
+        }
       } else {
         label += " \\[" + units + "\\]";
       }


More information about the Kst mailing list