From 4bfb45aca9a2e2dd181cdd6f5d7823ac3ae72a0e Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 22 Jul 2022 20:36:39 +1000 Subject: Bug [#2335] Fix incorrect display of selection when printing in some modes. --- src/EditView.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/EditView.cxx b/src/EditView.cxx index 554582bcb..986772fe2 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2695,14 +2695,9 @@ Sci::Position EditView::FormatRange(bool draw, CharacterRangeFull chrg, Rectangl // If this ever gets changed, cached pixmap would need to be recreated if technology != Technology::Default vsPrint.viewIndentationGuides = IndentView::None; // Don't show the selection when printing + vsPrint.selection.visible = false; vsPrint.elementColours.clear(); vsPrint.elementBaseColours.clear(); - // Set all selection background colours to be transparent. - constexpr ColourRGBA transparent(0xc0, 0xc0, 0xc0, 0x0); - vsPrint.elementBaseColours[Element::SelectionBack] = transparent; - vsPrint.elementBaseColours[Element::SelectionAdditionalBack] = transparent; - vsPrint.elementBaseColours[Element::SelectionSecondaryBack] = transparent; - vsPrint.elementBaseColours[Element::SelectionInactiveBack] = transparent; vsPrint.caretLine.alwaysShow = false; // Don't highlight matching braces using indicators vsPrint.braceHighlightIndicatorSet = false; -- cgit v1.2.3