From 7f3f6d59fb78a33283edd730bb981adf80007b1e Mon Sep 17 00:00:00 2001 From: Marko Njezic Date: Mon, 25 Jul 2011 21:01:10 +0200 Subject: Properly override background color when using alpha blended selections. Bug #3377116. --- src/Editor.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index a94089e9f..452666be7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2391,10 +2391,12 @@ ColourAllocated Editor::TextBackground(ViewStyle &vsDraw, bool overrideBackgroun return vsDraw.edgecolour.allocated; if (inHotspot && vsDraw.hotspotBackgroundSet) return vsDraw.hotspotBackground.allocated; - if (overrideBackground && (styleMain != STYLE_BRACELIGHT) && (styleMain != STYLE_BRACEBAD)) - return background; } - return vsDraw.styles[styleMain].back.allocated; + if (overrideBackground && (styleMain != STYLE_BRACELIGHT) && (styleMain != STYLE_BRACEBAD)) { + return background; + } else { + return vsDraw.styles[styleMain].back.allocated; + } } void Editor::DrawIndentGuide(Surface *surface, int lineVisible, int lineHeight, int start, PRectangle rcSegment, bool highlight) { -- cgit v1.2.3