[Kst] [Kst-plot/kst] 891b3c: Correctly read old kst sessions.
Barth Netterfield
netterfield at astro.utoronto.ca
Sat Mar 7 19:00:08 UTC 2015
Branch: refs/heads/master
Home: https://github.com/Kst-plot/kst
Commit: 891b3c6839a2572b9cd8070fe26464032628f3af
https://github.com/Kst-plot/kst/commit/891b3c6839a2572b9cd8070fe26464032628f3af
Author: Barth Netterfield <netterfield at astro.utoronto.ca>
Date: 2015-03-06 (Fri, 06 Mar 2015)
Changed paths:
M src/libkst/namedobject.cpp
M src/libkst/objectstore.cpp
M src/libkst/objectstore.h
M src/libkst/vector.cpp
M src/libkstapp/document.cpp
Log Message:
-----------
Correctly read old kst sessions.
Bump the kst file id to 2.0.9 and fix loading 2.0 sessions.
Kst sessions pack slave scalar names in such a way that new scalars can
not be added to vectors once the vector is created and the scalars are
named.
In an earlier commit, new scalars (iMin and iMax) were added to vectors.
This breaks loading of old sessions into new kst.
With this patch, if kst is loading an old session version, it will
not add iMin and iMax to the vectors. It will only add them for
new sessions.
Note: once a session has been created as a 2.0 session, it can never
be bumped to a 2.0.9 or later session.
This kind of sucks, but at least old sessions still work as old
sessions, and new one work and new ones.
This may be a temporary fix...
More information about the Kst
mailing list