From dc212d80cc3c37b291b07b9fe6f2fb6b4a9434ca Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 9 Oct 2022 09:58:21 +1100 Subject: Bug [#2358]. Suppress change history background line shading when printing. --- src/EditView.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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(MarkerOutline::HistoryRevertedToOrigin) | + 1u << static_cast(MarkerOutline::HistorySaved) | + 1u << static_cast(MarkerOutline::HistoryModified) | + 1u << static_cast(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) -- cgit v1.2.3