From c4025b67d3afa0de81d6f6360a8d7a49bf1406c9 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 19 Apr 2018 17:26:14 +1000 Subject: Use ColourDesired constructor explicitly to make more obvious. Constructor not marked explicit as may be used in external platform layers. --- src/Indicator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Indicator.cxx') diff --git a/src/Indicator.cxx b/src/Indicator.cxx index 3551e7202..5e229039e 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -28,7 +28,7 @@ static PRectangle PixelGridAlign(const PRectangle &rc) { void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, DrawState drawState, int value) const { StyleAndColour sacDraw = sacNormal; if (Flags() & SC_INDICFLAG_VALUEFORE) { - sacDraw.fore = value & SC_INDICVALUEMASK; + sacDraw.fore = ColourDesired(value & SC_INDICVALUEMASK); } if (drawState == drawHover) { sacDraw = sacHover; -- cgit v1.2.3