comparison layer/Colour3DPlotLayer.cpp @ 1252:b0b5776d2156

Fix attribute name -- it's colourScale in the spectrogram, but it's just scale here
author Chris Cannam
date Tue, 28 Feb 2017 16:34:01 +0000
parents c72d78d7890a
children b3603483228d
comparison
equal deleted inserted replaced
1251:9e1559b08f0d 1252:b0b5776d2156
1214 Colour3DPlotLayer::setProperties(const QXmlAttributes &attributes) 1214 Colour3DPlotLayer::setProperties(const QXmlAttributes &attributes)
1215 { 1215 {
1216 bool ok = false, alsoOk = false; 1216 bool ok = false, alsoOk = false;
1217 1217
1218 ColourScaleType colourScale = convertToColourScale 1218 ColourScaleType colourScale = convertToColourScale
1219 (attributes.value("colourScale").toInt(&ok)); 1219 (attributes.value("scale").toInt(&ok));
1220 if (ok) setColourScale(colourScale); 1220 if (ok) setColourScale(colourScale);
1221 1221
1222 int colourMap = attributes.value("colourScheme").toInt(&ok); 1222 int colourMap = attributes.value("colourScheme").toInt(&ok);
1223 if (ok) setColourMap(colourMap); 1223 if (ok) setColourMap(colourMap);
1224 1224