From 336e893d28d6ba1dadf02133533d362b3d4dfdd4 Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Fri, 10 Jun 2022 11:18:32 +1000 Subject: Bug [#2334] Fix hiding selection when selection layer is SC_LAYER_UNDER_TEXT. --- src/EditView.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/EditView.cxx b/src/EditView.cxx index 9692593fb..6570d6df3 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2355,7 +2355,9 @@ void EditView::DrawLine(Surface *surface, const EditModel &model, const ViewStyl } if (FlagSet(phase, DrawPhase::text)) { - DrawTranslucentSelection(surface, model, vsDraw, ll, line, rcLine, subLine, lineRange, xStart, tabWidthMinimumPixels, Layer::UnderText); + if (!hideSelection) { + DrawTranslucentSelection(surface, model, vsDraw, ll, line, rcLine, subLine, lineRange, xStart, tabWidthMinimumPixels, Layer::UnderText); + } DrawTranslucentLineState(surface, model, vsDraw, ll, line, rcLine, subLine, Layer::UnderText); DrawForeground(surface, model, vsDraw, ll, lineVisible, rcLine, lineRange, posLineStart, xStart, subLine, background); -- cgit v1.2.3