diff options
author | Marko Njezic <devnull@localhost> | 2012-04-15 00:32:10 +0200 |
---|---|---|
committer | Marko Njezic <devnull@localhost> | 2012-04-15 00:32:10 +0200 |
commit | 5e71444c72625bc6e77a60b97cd26e36f80573c8 (patch) | |
tree | 986561a8e43cb5b6e7a4ade4d016f832a718419f /src | |
parent | 2a61d8b19258ab849eae1b220a25b61e3eb20055 (diff) | |
download | scintilla-mirror-5e71444c72625bc6e77a60b97cd26e36f80573c8.tar.gz |
Printing uses different margins, so reset screen margins. Bug #3517854.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
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; |