[Kst] kst_0_99_branch: kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Aug 17 05:26:12 CEST 2004


CVS commit by netterfield: 

Partual Fix for  [Bug 87297] New: plugin slave vectors tag names [can] contain spaces

Make sure automatic names from the UI do not contain spaces.

Spaces can be still added manually, which will mess up equations.

The proper fix, for 1.0, will be to allow spaces in vectors/scalars used in equations....


  M +7 -6      kstfilterdialog_i.cpp   1.10.2.1
  M +2 -1      kstfitdialog_i.cpp   1.33.2.1
  M +2 -1      kstplugindialog_i.cpp   1.83.2.1


--- kdeextragear-2/kst/kst/kstfilterdialog_i.cpp  #1.10:1.10.2.1
@@ -288,5 +288,6 @@ bool KstFilterDialogI::saveOutputs(KstPl
         tagName = plugin->tagName();
       }
-      li->setText(tagName + "-" + (*it)._name);
+      QString otag = tagName + "-" + (*it)._name;
+      li->setText(otag.replace(" ", "_"));
     }
 

--- kdeextragear-2/kst/kst/kstfitdialog_i.cpp  #1.33:1.33.2.1
@@ -314,5 +314,6 @@ bool KstFitDialogI::saveOutputs(KstPlugi
         tagName = plugin->tagName();
       }
-      li->setText(tagName+"-"+(*it)._name);
+      QString otag = tagName + "-" + (*it)._name;
+      li->setText(otag.replace(" ", "_"));
     }
 

--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp  #1.83:1.83.2.1
@@ -347,5 +347,6 @@ bool KstPluginDialogI::saveOutputs(KstPl
         tagName = plugin->tagName();
       }
-      li->setText(tagName + "-" + (*it)._name);
+      QString otag = tagName + "-" + (*it)._name;
+      li->setText(otag.replace(" ", "_"));
     }
 





More information about the Kst mailing list