diff options
author | Neil <nyamatongwe@gmail.com> | 2022-06-17 15:29:02 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-06-17 15:29:02 +1000 |
commit | f36407f2f07898245bda6cbe0e3a9e8be7c89b97 (patch) | |
tree | 0fbbd1ad3743dbe44a75708990e6346d9c49e6b2 /src | |
parent | db01b0f6df44a671f5e822c56df25b1d2c123962 (diff) | |
download | scintilla-mirror-f36407f2f07898245bda6cbe0e3a9e8be7c89b97.tar.gz |
Bug [#2335] Fix bad background colour for additional, secondary, and inactive
selections when printing.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 6570d6df3..575c10d6d 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2696,8 +2696,12 @@ Sci::Position EditView::FormatRange(bool draw, CharacterRangeFull chrg, Rectangl // Don't show the selection when printing vsPrint.elementColours.clear(); vsPrint.elementBaseColours.clear(); - // Transparent: - vsPrint.elementBaseColours[Element::SelectionBack] = ColourRGBA(0xc0, 0xc0, 0xc0, 0x0); + // 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; |