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

Eli Fidler eli at staikos.net
Tue Dec 19 22:15:37 CET 2006


SVN commit 615017 by fidler:

oops -- historical compatibility requires '-', not '_'


 M  +2 -2      kstobjectcollection.h  


--- branches/work/kst/hierarchy/kst/src/libkst/kstobjectcollection.h #615016:615017
@@ -554,7 +554,7 @@
     // previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
     // now, they are PSD1-ABCDE/freq
     QString newTag = x;
-    newTag.replace(newTag.findRev(KstObjectTag::tagSeparatorReplacement), 1, KstObjectTag::tagSeparator);
+    newTag.replace(newTag.findRev('-'), 1, KstObjectTag::tagSeparator);
     obj = retrieveObject(KstObjectTag::fromString(newTag));
     if (obj) {
       return _list.find(obj);
@@ -573,7 +573,7 @@
     // previously, output vectors of equations, PSDs, etc. were named PSD1-ABCDE-freq
     // now, they are PSD1-ABCDE/freq
     QString newTag = x;
-    newTag.replace(newTag.findRev(KstObjectTag::tagSeparatorReplacement), 1, KstObjectTag::tagSeparator);
+    newTag.replace(newTag.findRev('-'), 1, KstObjectTag::tagSeparator);
     obj = retrieveObject(KstObjectTag::fromString(newTag));
     if (obj) {
       return _list.find(obj);


More information about the Kst mailing list