[Kst] [Bug 118737] Equation names generation could be improved

Andrew Walker arwalker at sumusltd.com
Tue May 16 00:13:09 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=118737         




------- Additional Comments From arwalker sumusltd com  2006-05-16 00:13 -------
The problem is in KstEqDialogI::newObject()

which both removes "." in the equation name:

  QString etext = _w->_equation->text();
  etext.remove(QRegExp("[^a-zA-Z0-9\\(\\)\\+\\-\\*/\\%\\^\\|\\&\\!<>=_]"));

and also truncates the equation name to 12 characters:

  if (etext.length() > 12) {
    etext.truncate(12);
    etext += "...";
  }

Can anyone explaing the reason for the former? The latter is for more obvious reasons, but why not follow Nicolas' idea and truncate the name when it is displayed?


More information about the Kst mailing list