|
@@ -727,7 +727,7 @@ begin
|
|
prevAction := TObject(FUndoList[FUndoPos]) as TCustomImageDifference;
|
|
prevAction := TObject(FUndoList[FUndoPos]) as TCustomImageDifference;
|
|
if IsInverseImageDiff(AUndoAction,prevAction) then
|
|
if IsInverseImageDiff(AUndoAction,prevAction) then
|
|
begin
|
|
begin
|
|
- writeln('Inverse');
|
|
|
|
|
|
+ //writeln('Inverse');
|
|
AUndoAction.Free;
|
|
AUndoAction.Free;
|
|
FCurrentState.saved := prevAction.SavedBefore;
|
|
FCurrentState.saved := prevAction.SavedBefore;
|
|
Dec(FUndoPos);
|
|
Dec(FUndoPos);
|
|
@@ -739,7 +739,7 @@ begin
|
|
AUndoAction.Free;
|
|
AUndoAction.Free;
|
|
If prevAction.IsIdentity then
|
|
If prevAction.IsIdentity then
|
|
begin
|
|
begin
|
|
- writeln('Inverse (combine)');
|
|
|
|
|
|
+ //writeln('Inverse (combine)');
|
|
FCurrentState.saved := prevAction.SavedBefore;
|
|
FCurrentState.saved := prevAction.SavedBefore;
|
|
Dec(FUndoPos);
|
|
Dec(FUndoPos);
|
|
ClearUndoAfter;
|
|
ClearUndoAfter;
|
|
@@ -757,7 +757,7 @@ begin
|
|
FUndoList.Add(AUndoAction);
|
|
FUndoList.Add(AUndoAction);
|
|
inc(FUndoPos);
|
|
inc(FUndoPos);
|
|
end;
|
|
end;
|
|
- writeln(AUndoAction.ToString);
|
|
|
|
|
|
+ //writeln(AUndoAction.ToString);
|
|
FCurrentState.saved := AUndoAction.SavedAfter;
|
|
FCurrentState.saved := AUndoAction.SavedAfter;
|
|
CompressUndoIfNecessary;
|
|
CompressUndoIfNecessary;
|
|
end;
|
|
end;
|