mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 15:25:07 +02:00
SynEdit: Simplify TSynEditUndoItem.IsEqual.
git-svn-id: trunk@56820 -
This commit is contained in:
parent
c8f3c37159
commit
fdcf607d17
@ -5472,7 +5472,7 @@ var
|
||||
Group: TSynEditUndoGroup;
|
||||
begin
|
||||
Group := fUndoList.PopItem;
|
||||
if Group <> nil then begin;
|
||||
if Group <> nil then begin
|
||||
{$IFDEF SynUndoDebugCalls}
|
||||
DebugLnEnter(['>> TCustomSynEdit.Undo ',DbgSName(self), ' ', dbgs(Self), ' Group', dbgs(Group), ' cnt=', Group.Count]);
|
||||
{$ENDIF}
|
||||
|
@ -585,8 +585,7 @@ end;
|
||||
|
||||
function TSynEditUndoItem.IsEqual(AnItem: TSynEditUndoItem): Boolean;
|
||||
begin
|
||||
Result := (ClassType = AnItem.ClassType);
|
||||
if Result then Result := Result and IsEqualContent(AnItem);
|
||||
Result := (ClassType = AnItem.ClassType) and IsEqualContent(AnItem);
|
||||
end;
|
||||
|
||||
function TSynEditUndoItem.DebugString: String;
|
||||
|
Loading…
Reference in New Issue
Block a user