diff options
| author | Marko Njezic <unknown> | 2012-04-15 00:32:10 +0200 |
|---|---|---|
| committer | Marko Njezic <unknown> | 2012-04-15 00:32:10 +0200 |
| commit | 13e7c5dfa626fb3747fbffdff31a125023ac2141 (patch) | |
| tree | a1a242e33ab17aabe5d858354d093ad1d3fac53b | |
| parent | 59c11071f804032466204bf009d5061d709e798a (diff) | |
| download | scintilla-mirror-13e7c5dfa626fb3747fbffdff31a125023ac2141.tar.gz | |
Printing uses different margins, so reset screen margins. Bug #3517854.
| -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; |
