diff options
| author | Neil <nyamatongwe@gmail.com> | 2022-10-09 09:58:21 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2022-10-09 09:58:21 +1100 | 
| commit | dc212d80cc3c37b291b07b9fe6f2fb6b4a9434ca (patch) | |
| tree | f917a953b8cf5a9faf3068ef47ae43f90c8cf47b /src | |
| parent | 2e652e0d9eaa867dfce6d442b80e8bc7f074a2f1 (diff) | |
| download | scintilla-mirror-dc212d80cc3c37b291b07b9fe6f2fb6b4a9434ca.tar.gz | |
Bug [#2358]. Suppress change history background line shading when printing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/EditView.cxx | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/EditView.cxx b/src/EditView.cxx index 8a7a50a7e..681541418 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2808,6 +2808,14 @@ Sci::Position EditView::FormatRange(bool draw, CharacterRangeFull chrg, Rectangl  		vsPrint.Refresh(*surfaceMeasure, model.pdoc->tabInChars);	// Recalculate fixedColumnWidth  	} +	// Turn off change history marker backgrounds +	constexpr unsigned int changeMarkers = +		1u << static_cast<unsigned int>(MarkerOutline::HistoryRevertedToOrigin) | +		1u << static_cast<unsigned int>(MarkerOutline::HistorySaved) | +		1u << static_cast<unsigned int>(MarkerOutline::HistoryModified) | +		1u << static_cast<unsigned int>(MarkerOutline::HistoryRevertedToModified); +	vsPrint.maskInLine &= ~changeMarkers; +  	const Sci::Line linePrintStart = model.pdoc->SciLineFromPosition(chrg.cpMin);  	Sci::Line linePrintLast = linePrintStart + (rc.bottom - rc.top) / vsPrint.lineHeight - 1;  	if (linePrintLast < linePrintStart) | 
