mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:56:12 +02:00
fixed invalid typecast
git-svn-id: trunk@3732 -
This commit is contained in:
parent
00e65ab044
commit
eb74c0b02d
@ -435,7 +435,8 @@ var
|
|||||||
i: integer;
|
i: integer;
|
||||||
begin
|
begin
|
||||||
inherited Notification(AComponent, Operation);
|
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);
|
i := fEditors.IndexOf(AComponent);
|
||||||
if i > -1 then
|
if i > -1 then
|
||||||
RemoveEditor(AComponent as TCustomSynEdit);
|
RemoveEditor(AComponent as TCustomSynEdit);
|
||||||
|
Loading…
Reference in New Issue
Block a user