aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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;