aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-01-06 11:38:05 +1100
committernyamatongwe <unknown>2013-01-06 11:38:05 +1100
commit2e6fa813b54954c27f39b88508175b2019885419 (patch)
treefa6b5cb0611cdb313ba2116512de854dbd50131f /src
parent9f23d42912749ef641b017ed032e30c8c9fb4493 (diff)
downloadscintilla-mirror-2e6fa813b54954c27f39b88508175b2019885419.tar.gz
Bug #1430. Fix crash when printing line longer than 8000 characters.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
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;