From b9bbbfe7848982c41e91b4697f849040bcf4de29 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 26 Jul 2007 09:43:37 +0000 Subject: Fixed bug when ShowAll called where linesInDocument was always reset to 1 which hid most of the file. --- src/ContractionState.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 4e289a155..abf2e67be 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -45,7 +45,6 @@ void ContractionState::Clear() { heights = 0; delete displayLines; displayLines = 0; - linesInDocument = 1; } int ContractionState::LinesInDoc() const { @@ -223,7 +222,9 @@ bool ContractionState::SetHeight(int lineDoc, int height) { } void ContractionState::ShowAll() { + int lines = LinesInDoc(); Clear(); + linesInDocument = lines; } // Debugging checks -- cgit v1.2.3