aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-02-07 10:17:57 +0000
committernyamatongwe <devnull@localhost>2006-02-07 10:17:57 +0000
commit4e14aed3644606b0ab8a55458f73a5a7df1eabf0 (patch)
tree5e5a086cbc28b14b6db92f7cbce26b21ebfa2313
parentbe8ae9666b041f3eed5d4811e32cf107b359c585 (diff)
downloadscintilla-mirror-4e14aed3644606b0ab8a55458f73a5a7df1eabf0.tar.gz
Set linesInDisplay to linesInDoc in ShowAll to avoid crashes when
out of document line numbers used.
-rw-r--r--src/ContractionState.cxx6
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;
}