changeset 1254:b3603483228d

Fix failure to respect saved linear-scale setting in layer when the model suggests it would prefer log scale
author Chris Cannam
date Tue, 28 Feb 2017 16:42:52 +0000
parents 822edd9bb665
children bbdfe9b57857
files layer/Colour3DPlotLayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp	Tue Feb 28 16:34:59 2017 +0000
+++ b/layer/Colour3DPlotLayer.cpp	Tue Feb 28 16:42:52 2017 +0000
@@ -481,9 +481,9 @@
 void
 Colour3DPlotLayer::setColourScale(ColourScaleType scale)
 {
+    m_colourScaleSet = true; // even if setting to the same thing
     if (m_colourScale == scale) return;
     m_colourScale = scale;
-    m_colourScaleSet = true;
     invalidateRenderers();
     emit layerParametersChanged();
 }