[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Oct 11 02:40:30 UTC 2012
SVN commit 1320100 by netterfield:
BUG: 306353
Save/reload "automatically scale number axis" setting in plots.
M +6 -0 plotitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #1320099:1320100
@@ -319,6 +319,7 @@
xml.writeAttribute("hidetopaxislabel", QVariant(_manuallyHideTopAxisLabel).toString());
xml.writeAttribute("hideleftaxislabel", QVariant(_manuallyHideLeftAxisLabel).toString());
xml.writeAttribute("hiderightaxislabel", QVariant(_manuallyHideRightAxisLabel).toString());
+ xml.writeAttribute("numberaxislabelscale", QVariant(_useNumberAxisLabelScale).toString());
saveNameInfo(xml, PLOTNUM);
ViewItem::save(xml);
@@ -3708,6 +3709,11 @@
rc->setManuallyHideRightAxisLabel(QVariant(av.toString()).toBool());
}
+ av = attrs.value("numberaxislabelscale");
+ if (!av.isNull()) {
+ rc->setUseAxisScale(QVariant(av.toString()).toBool());
+ }
+
if (attrs.value("descriptiveNameIsManual").toString() == "true") {
rc->setDescriptiveName(attrs.value("descriptiveName").toString());
}
More information about the Kst
mailing list