# HG changeset patch # User Chris Cannam # Date 1184186797 0 # Node ID 7554ae119882e59de14456e0f427c8d2a3041e31 # Parent 9dd4326650596d1feae71920abd3e0343bc79168 * Fix failure to save vertical scale setting from time-value layer diff -r 9dd432665059 -r 7554ae119882 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Wed Jul 11 17:21:37 2007 +0000 +++ b/layer/TimeValueLayer.cpp Wed Jul 11 20:46:37 2007 +0000 @@ -1424,8 +1424,9 @@ TimeValueLayer::toXmlString(QString indent, QString extraAttributes) const { return Layer::toXmlString(indent, extraAttributes + - QString(" colour=\"%1\" plotStyle=\"%2\"") - .arg(encodeColour(m_colour)).arg(m_plotStyle)); + QString(" colour=\"%1\" plotStyle=\"%2\" verticalScale=\"%3\"") + .arg(encodeColour(m_colour)).arg(m_plotStyle) + .arg(m_verticalScale)); } void @@ -1443,5 +1444,9 @@ PlotStyle style = (PlotStyle) attributes.value("plotStyle").toInt(&ok); if (ok) setPlotStyle(style); + + VerticalScale scale = (VerticalScale) + attributes.value("verticalScale").toInt(&ok); + if (ok) setVerticalScale(scale); }