From 87b409a246c718bd4f8ce59d74145d6b00e252d2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 6 Jan 2013 11:38:05 +1100 Subject: Bug #1430. Fix crash when printing line longer than 8000 characters. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index c35caf5b8..f0a4f44f2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3814,7 +3814,7 @@ long Editor::FormatRange(bool draw, Sci_RangeToFormat *pfr) { // Copy this line and its styles from the document into local arrays // and determine the x position at which each character starts. - LineLayout ll(8000); + LineLayout ll(pdoc->LineStart(lineDoc+1)-pdoc->LineStart(lineDoc)+1); LayoutLine(lineDoc, surfaceMeasure, vsPrint, &ll, widthPrint); ll.containsCaret = false; -- cgit v1.2.3