From 4e14aed3644606b0ab8a55458f73a5a7df1eabf0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 Feb 2006 10:17:57 +0000 Subject: Set linesInDisplay to linesInDoc in ShowAll to avoid crashes when out of document line numbers used. --- src/ContractionState.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3