fixed fpc 1.9.8 compilation

git-svn-id: trunk@7165 -
This commit is contained in:
vincents 2005-05-09 16:40:23 +00:00
parent 776c27aac0
commit 2243caa324

View File

@ -112,7 +112,9 @@ procedure TCustomLabeledEdit.CreateInternalLabel;
begin
if FEditLabel<>nil then exit;
FEditLabel := TBoundLabel.Create(Self);
{$IFNDEF VER1_9_8} //fpc 1.9.8 can't stream subcomponents.
Include(FEditLabel.ComponentStyle, csSubComponent);
{$ENDIF}
FEditLabel.FreeNotification(Self);
FEditLabel.FocusControl := Self;
end;