[Kst] A patch to fix labels on old kst plots

Barth Netterfield netterfield at astro.utoronto.ca
Wed Nov 3 15:42:11 CET 2004


As pointing out a while ago by Andrew, a change I made to allow empty *Labels 
to take up no room if they are empty also changed the way labels are handled 
in terms of what the correct justification should be. Since, up to now, the 
Justification of these otherwise fixed labels is stored in data file, this 
change meant that old files (August and earlier) request the wrong 
justification for the labels.

This patch does 2 things to the way that [X|Y|Tick]*Labels are handled.
1) it assumes that the position of these labels is fixed, and overwrites 
whatever justification might have been in the file.
2) it assumes that since neither the position nor the justification for these 
labels is going to be listened to, it shouldn't write them to the file.

It means that kst files written by new versions of kst will not work on old 
ksts, but old kst files will work on new ksts.

cbn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labelfix.patch
Type: text/x-diff
Size: 4711 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20041103/9994b3a2/labelfix.bin


More information about the Kst mailing list