mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 17:40:40 +02:00
IDE: mode matrix: redo
git-svn-id: trunk@40942 -
This commit is contained in:
parent
60aeaa171d
commit
1b2f18ecea
@ -1501,8 +1501,12 @@ begin
|
|||||||
if not CanUndo then exit;
|
if not CanUndo then exit;
|
||||||
MatrixChanging;
|
MatrixChanging;
|
||||||
try
|
try
|
||||||
DoMatrix:=TGroupedMatrix(fUndoItems[fUndoItems.Count-1]);
|
DoMatrix:=TGroupedMatrix.Create(nil);
|
||||||
|
DoMatrix.Assign(Matrix);
|
||||||
fRedoItems.Add(DoMatrix);
|
fRedoItems.Add(DoMatrix);
|
||||||
|
if MaxUndo<fRedoItems.Count then
|
||||||
|
fRedoItems.Delete(0);
|
||||||
|
DoMatrix:=TGroupedMatrix(fUndoItems[fUndoItems.Count-1]);
|
||||||
fUndoItems.OwnsObjects:=false;
|
fUndoItems.OwnsObjects:=false;
|
||||||
fUndoItems.Delete(fUndoItems.Count-1);
|
fUndoItems.Delete(fUndoItems.Count-1);
|
||||||
fUndoItems.OwnsObjects:=true;
|
fUndoItems.OwnsObjects:=true;
|
||||||
@ -1519,8 +1523,12 @@ begin
|
|||||||
if not CanRedo then exit;
|
if not CanRedo then exit;
|
||||||
MatrixChanging;
|
MatrixChanging;
|
||||||
try
|
try
|
||||||
DoMatrix:=TGroupedMatrix(fRedoItems[fRedoItems.Count-1]);
|
DoMatrix:=TGroupedMatrix.Create(nil);
|
||||||
|
DoMatrix.Assign(Matrix);
|
||||||
fUndoItems.Add(DoMatrix);
|
fUndoItems.Add(DoMatrix);
|
||||||
|
if MaxUndo<fUndoItems.Count then
|
||||||
|
fUndoItems.Delete(0);
|
||||||
|
DoMatrix:=TGroupedMatrix(fRedoItems[fRedoItems.Count-1]);
|
||||||
fRedoItems.OwnsObjects:=false;
|
fRedoItems.OwnsObjects:=false;
|
||||||
fRedoItems.Delete(fRedoItems.Count-1);
|
fRedoItems.Delete(fRedoItems.Count-1);
|
||||||
fRedoItems.OwnsObjects:=true;
|
fRedoItems.OwnsObjects:=true;
|
||||||
|
Loading…
Reference in New Issue
Block a user