[viewWithTag:] corrected bug in optimisation for first sub-level.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-08-27 22:31:02 +00:00
parent 497c9801a7
commit c92231d8e3

View file

@ -2008,10 +2008,13 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
*/
for (i = 0; i < count; i++)
{
view = array[i];
NSView *subView = array[i];
if ([view tag] == aTag)
break;
if ([subView tag] == aTag)
{
view = subView;
break;
}
}
if (view == nil)