From 4a66b9e90218517ee62ce77ac1733e30976065ea Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 7 May 2005 10:50:38 +0000 Subject: Patch from Robert that avoids slow performance for multiple step undo or redo by only modifying the scroll bars at the end. When document is read only, undo and redo send a SCN_MODIFYATTEMPTRO notification. --- src/CellBuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 772f48e6e..2bb4f5a6c 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -1024,7 +1024,7 @@ void CellBuffer::DeleteUndoHistory() { } bool CellBuffer::CanUndo() { - return (!readOnly) && (uh.CanUndo()); + return uh.CanUndo(); } int CellBuffer::StartUndo() { @@ -1052,7 +1052,7 @@ void CellBuffer::PerformUndoStep() { } bool CellBuffer::CanRedo() { - return (!readOnly) && (uh.CanRedo()); + return uh.CanRedo(); } int CellBuffer::StartRedo() { -- cgit v1.2.3