diff options
author | nyamatongwe <devnull@localhost> | 2006-02-07 10:17:57 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-02-07 10:17:57 +0000 |
commit | 4e14aed3644606b0ab8a55458f73a5a7df1eabf0 (patch) | |
tree | 5e5a086cbc28b14b6db92f7cbce26b21ebfa2313 /src/ContractionState.cxx | |
parent | be8ae9666b041f3eed5d4811e32cf107b359c585 (diff) | |
download | scintilla-mirror-4e14aed3644606b0ab8a55458f73a5a7df1eabf0.tar.gz |
Set linesInDisplay to linesInDoc in ShowAll to avoid crashes when
out of document line numbers used.
Diffstat (limited to 'src/ContractionState.cxx')
-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; } |