fixed invalid typecast

git-svn-id: trunk@3732 -
This commit is contained in:
mattias 2002-12-24 13:05:08 +00:00
parent 00e65ab044
commit eb74c0b02d

View File

@ -435,7 +435,8 @@ var
i: integer;
begin
inherited Notification(AComponent, Operation);
if Operation = opRemove then begin
if (Operation = opRemove)
{$IFDEF SYN_LAZARUS}and (AComponent is TCustomSynEdit){$ENDIF} then begin
i := fEditors.IndexOf(AComponent);
if i > -1 then
RemoveEditor(AComponent as TCustomSynEdit);