From 5e71444c72625bc6e77a60b97cd26e36f80573c8 Mon Sep 17 00:00:00 2001 From: Marko Njezic Date: Sun, 15 Apr 2012 00:32:10 +0200 Subject: Printing uses different margins, so reset screen margins. Bug #3517854. --- src/Editor.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3