From c70388e6a8c0230ad651df73579b2428386dda02 Mon Sep 17 00:00:00 2001 From: jesus Date: Fri, 19 Sep 2014 03:33:22 +0000 Subject: [PATCH] LazReport, invalidate the page instead of just invalidating the 'end' state after undo/redo, fix issue #26698 git-svn-id: trunk@46249 - --- components/lazreport/source/lr_desgn.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lazreport/source/lr_desgn.pas b/components/lazreport/source/lr_desgn.pas index fd2512b857..1958d37453 100644 --- a/components/lazreport/source/lr_desgn.pas +++ b/components/lazreport/source/lr_desgn.pas @@ -5363,6 +5363,7 @@ begin BufferLength := FRedoBufferLength; if (Buffer^[BufferLength - 1].Page <> CurPage) then Exit; + List := TFpList.Create; a := Buffer^[BufferLength - 1].Action; p := Buffer^[BufferLength - 1].Objects; @@ -5419,7 +5420,7 @@ begin Dec(FRedoBufferLength); ResetSelection; - RedrawPage; + PageView.Invalidate; N46.Enabled := FUndoBufferLength > 0; UndoB.Enabled := N46.Enabled; N48.Enabled := FRedoBufferLength > 0;