aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMarko Njezic <devnull@localhost>2012-04-15 00:32:10 +0200
committerMarko Njezic <devnull@localhost>2012-04-15 00:32:10 +0200
commit5e71444c72625bc6e77a60b97cd26e36f80573c8 (patch)
tree986561a8e43cb5b6e7a4ade4d016f832a718419f /src
parent2a61d8b19258ab849eae1b220a25b61e3eb20055 (diff)
downloadscintilla-mirror-5e71444c72625bc6e77a60b97cd26e36f80573c8.tar.gz
Printing uses different margins, so reset screen margins. Bug #3517854.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ad9aad5c8..a2ccea2a4 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3814,6 +3814,10 @@ long Editor::FormatRange(bool draw, Sci_RangeToFormat *pfr) {
// White background for the line numbers
vsPrint.styles[STYLE_LINENUMBER].back = ColourDesired(0xff, 0xff, 0xff);
+ // Printing uses different margins, so reset screen margins
+ vsPrint.leftMarginWidth = 0;
+ vsPrint.rightMarginWidth = 0;
+
vsPrint.Refresh(*surfaceMeasure);
// Determining width must hapen after fonts have been realised in Refresh
int lineNumberWidth = 0;