diff layer/Colour3DPlotLayer.cpp @ 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 b0b5776d2156
children a34a2a25907c
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();
 }