aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicholai Benalal <unknown>2018-04-19 07:31:34 +1000
committerNicholai Benalal <unknown>2018-04-19 07:31:34 +1000
commit8c66be442aaff47a978d699343a0082686530b83 (patch)
tree7b3c1dd64bd233d2b6778a81f5ba8f6e05288cc4 /src
parent33614c254f56586b2e618213ddf879f865f127a6 (diff)
downloadscintilla-mirror-8c66be442aaff47a978d699343a0082686530b83.tar.gz
SC_PRINT_SCREENCOLOURS doesn't force the background colour of line numbers white.
Diffstat (limited to 'src')
-rw-r--r--src/EditView.cxx5
1 files changed, 3 insertions, 2 deletions
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;