Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1253:822edd9bb665 | 1254:b3603483228d |
---|---|
479 } | 479 } |
480 | 480 |
481 void | 481 void |
482 Colour3DPlotLayer::setColourScale(ColourScaleType scale) | 482 Colour3DPlotLayer::setColourScale(ColourScaleType scale) |
483 { | 483 { |
484 m_colourScaleSet = true; // even if setting to the same thing | |
484 if (m_colourScale == scale) return; | 485 if (m_colourScale == scale) return; |
485 m_colourScale = scale; | 486 m_colourScale = scale; |
486 m_colourScaleSet = true; | |
487 invalidateRenderers(); | 487 invalidateRenderers(); |
488 emit layerParametersChanged(); | 488 emit layerParametersChanged(); |
489 } | 489 } |
490 | 490 |
491 void | 491 void |