diff options
author | Nicholai Benalal <unknown> | 2018-04-19 07:31:34 +1000 |
---|---|---|
committer | Nicholai Benalal <unknown> | 2018-04-19 07:31:34 +1000 |
commit | 1eb0f569bf6e9d3fde4f482fb2c06e980b6f72af (patch) | |
tree | ed0ed7afb0f2df1328cc0ff0201a6cd5907d1314 /src | |
parent | cf140021a52c563e8f6835364499c0ecf54e8ded (diff) | |
download | scintilla-mirror-1eb0f569bf6e9d3fde4f482fb2c06e980b6f72af.tar.gz |
Backport: SC_PRINT_SCREENCOLOURS doesn't force the background colour of line numbers white.
Backport of changeset 6700:daa126b86c17.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 5ff43558d..65b2e1038 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; |