[Kst]  branches/work/kst/portto4/kst/src/libkstapp
    Nicolas Brisset 
    nicolas.brisset at eurocopter.com
       
    Wed Nov 17 22:10:45 CET 2010
    
    
  
SVN commit 1198208 by brisset:
When using the combobox to type in vector names, insert the new vector
at the cursor position instead of appending at the end.
 M  +1 -3      equationdialog.cpp  
--- branches/work/kst/portto4/kst/src/libkstapp/equationdialog.cpp #1198207:1198208
@@ -69,9 +69,7 @@
 void EquationTab::equationUpdate(const QString& string) {
   QString cleanString = string;
   cleanString.remove('[').remove(']'); // HACK: '[' in descriptive names mess up parser.  Remove them.
-  QString equation = _equation->text();
-  equation += '[' + cleanString + ']';
-  _equation->setText(equation); 
+  _equation->insert('[' + cleanString + ']');
 }
 
 
    
    
More information about the Kst
mailing list