Mercurial > hg > svgui
changeset 1205:42217d9c5920 3.0-integration
Fix erroneous use of single-colour setting to determine dark/light background when in segmentation mode
author | Chris Cannam |
---|---|
date | Tue, 20 Dec 2016 11:53:14 +0000 |
parents | d421df27e184 |
children | 67f437277069 |
files | layer/TimeValueLayer.h |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/TimeValueLayer.h Tue Dec 20 10:49:24 2016 +0000 +++ b/layer/TimeValueLayer.h Tue Dec 20 11:53:14 2016 +0000 @@ -146,6 +146,7 @@ void setProperties(const QXmlAttributes &attributes); + /// Override from SingleColourLayer virtual ColourSignificance getLayerColourSignificance() const { if (m_plotStyle == PlotSegmentation) { return ColourHasMeaningfulValue; @@ -154,6 +155,15 @@ } } + /// Override from SingleColourLayer + virtual bool hasLightBackground() const { + if (m_plotStyle == PlotSegmentation) { + return true; + } else { + return SingleColourLayer::hasLightBackground(); + } + } + /// VerticalScaleLayer and ColourScaleLayer methods virtual int getYForValue(LayerGeometryProvider *, double value) const; virtual double getValueForY(LayerGeometryProvider *, int y) const;