designer: fix selection of non-visual components on the same level (bug #0015428)

git-svn-id: trunk@25791 -
This commit is contained in:
paul 2010-05-31 03:35:41 +00:00
parent 81d8ef4da9
commit 0fd468ac81

View File

@ -417,7 +417,7 @@ var
OldRoot: TComponent;
IsNonVisual: Boolean;
begin
if Assigned(Best) and BestIsNonVisual and (BestLevel <= Level) then exit;
if Assigned(Best) and BestIsNonVisual and (BestLevel < Level) then exit;
{$IFDEF VerboseDesignerSelect}
DebugLn(['TComponentSearch.Gather ',DbgSName(Child),' ',dbgs(AtPos),' MinClass=',DbgSName(MinClass)]);
{$ENDIF}