From dee236ce71b0ce4795a6d2773f47b4075c283d8c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 18 Jul 2000 04:24:17 +0000 Subject: Added functions to clear all styling and contraction. --- src/CellBuffer.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 130b289e6..68bcde2ed 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -186,6 +186,12 @@ void LineVector::ExpandLevels(int sizeNew) { } } +void LineVector::ClearLevels() { + delete []levels; + levels = 0; + sizeLevels = 0; +} + void LineVector::InsertValue(int pos, int value) { //Platform::DebugPrintf("InsertValue[%d] = %d\n", pos, value); if ((lines + 2) >= size) { @@ -1070,3 +1076,6 @@ int CellBuffer::GetLevel(int line) { } } +void CellBuffer::ClearLevels() { + lv.ClearLevels(); +} -- cgit v1.2.3