| Summary: | changing data file in Edit Vector dialogue corrupts kst file | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | D. V. Wiebe <dvw> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
D. V. Wiebe
2007-12-04 01:13:23 UTC
Seems to be more problems with the hierarchical naming scheme 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
See also bug #141597 SVN commit 748562 by arwalker: BUG:153393 update tag name when file is changed M +4 -5 libkst/kstrvector.cpp M +0 -1 libkstapp/kstvectordialog_i.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=748562 |