From 8c66be442aaff47a978d699343a0082686530b83 Mon Sep 17 00:00:00 2001 From: Nicholai Benalal Date: Thu, 19 Apr 2018 07:31:34 +1000 Subject: SC_PRINT_SCREENCOLOURS doesn't force the background colour of line numbers white. --- src/EditView.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/EditView.cxx b/src/EditView.cxx index 3f490af5e..acf7b3b84 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2242,8 +2242,9 @@ Sci::Position EditView::FormatRange(bool draw, Sci_RangeToFormat *pfr, Surface * } } } - // White background for the line numbers - vsPrint.styles[STYLE_LINENUMBER].back = ColourDesired(0xff, 0xff, 0xff); + // White background for the line numbers if SC_PRINT_SCREENCOLOURS isn't used + if (printParameters.colourMode != SC_PRINT_SCREENCOLOURS) + vsPrint.styles[STYLE_LINENUMBER].back = ColourDesired(0xff, 0xff, 0xff); // Printing uses different margins, so reset screen margins vsPrint.leftMarginWidth = 0; -- cgit v1.2.3