diff options
author | Neil <nyamatongwe@gmail.com> | 2022-05-17 09:36:45 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-05-17 09:36:45 +1000 |
commit | 8734147bd2fba8f75d2765aad0cc9d57c4bb3dfc (patch) | |
tree | 29d9f3db411bb6dfce1a2b450785330a476c8779 | |
parent | 475450c76ceef43a7f5b2c68ed5848baee96b6dc (diff) | |
download | scintilla-mirror-8734147bd2fba8f75d2765aad0cc9d57c4bb3dfc.tar.gz |
Fix pink selection background when printing by making it completely transparent.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | src/EditView.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index e1db2d4ec..988bea895 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -610,6 +610,9 @@ For Qt 6, fix "modified" signal when text is null but length non-0. <a href="https://sourceforge.net/p/scintilla/bugs/2328/">Bug #2328</a>. </li> + <li> + Fix pink selection background when printing by making it completely transparent. + </li> </ul> <h3> <a href="https://www.scintilla.org/scintilla522.zip">Release 5.2.2</a> diff --git a/src/EditView.cxx b/src/EditView.cxx index 2ba450ab3..9692593fb 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2694,6 +2694,8 @@ 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); vsPrint.caretLine.alwaysShow = false; // Don't highlight matching braces using indicators vsPrint.braceHighlightIndicatorSet = false; |