SynEdit: Simplify TSynEditUndoItem.IsEqual.

git-svn-id: trunk@56820 -
This commit is contained in:
juha 2017-12-22 23:43:23 +00:00
parent c8f3c37159
commit fdcf607d17
2 changed files with 2 additions and 3 deletions

View File

@ -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}

View File

@ -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;