Mercurial > hg > svgui
diff layer/TimeValueLayer.h @ 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 | 4fe7a09be0fe |
children | a8e126fe6a53 |
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;