diff options
author | nyamatongwe <unknown> | 2006-02-07 10:17:57 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-02-07 10:17:57 +0000 |
commit | 03641f9b1917ac11fa1b79f883b15abdee2b0c3f (patch) | |
tree | 5e5a086cbc28b14b6db92f7cbce26b21ebfa2313 /src | |
parent | 5cc68ea3df62b6713b3508f5e4715828e12c5c15 (diff) | |
download | scintilla-mirror-03641f9b1917ac11fa1b79f883b15abdee2b0c3f.tar.gz |
Set linesInDisplay to linesInDoc in ShowAll to avoid crashes when
out of document line numbers used.
Diffstat (limited to 'src')
-rw-r--r-- | src/ContractionState.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 8833b07bc..3d021b080 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -280,4 +280,10 @@ void ContractionState::ShowAll() { delete []lines; lines = 0; size = 0; + + delete []docLines; + docLines = 0; + sizeDocLines = 0; + + linesInDisplay = linesInDoc; } |