* fixed setting wrong component state. csDesignInstance and csInline were set inversed.

git-svn-id: trunk@13916 -
This commit is contained in:
ivost 2009-10-21 19:24:10 +00:00
parent d44c6876cd
commit 0c725eae43

View File

@ -301,18 +301,18 @@ Procedure TComponent.SetDesignInstance(Value: Boolean);
begin
If Value then
Exclude(FComponentState, csDesignInstance)
Include(FComponentState, csDesignInstance)
else
Include(FComponentState, csDesignInstance);
Exclude(FComponentState, csDesignInstance);
end;
Procedure TComponent.SetInline(Value: Boolean);
begin
If Value then
Exclude(FComponentState, csInline)
Include(FComponentState, csInline)
else
Include(FComponentState, csInline);
Exclude(FComponentState, csInline);
end;