[Kst] [Bug 153393] changing data file in Edit Vector dialogue corrupts kst file

Andrew Walker arwalker at sumusltd.com
Tue Dec 11 23:51:43 CET 2007


------- 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=153393         




------- Additional Comments From arwalker sumusltd com  2007-12-11 23:51 -------
This problem occurs because in the KstRvector constructor the specified tag name is overriden in the following code:

  if (in_file) {
    // use datasource as tag context for this RVector
    // allow unique vector names to be displayed at top-level
    setTagName(KstObjectTag(tag().tag(), in_file->tag(), false));
  }

However, the corresponding tagname in the curve attributes is not changed in the same way so the curve is left with a vector that could not be found. 

The solution is one of the following:
* not to override the vector tagname when it is loaded
* to update the curve's vector tagname similarly when loaded
* when the datasource is changed change the tagname at that point so the overriding of the vector tagname when it is loaded has no effect


More information about the Kst mailing list