mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
[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:
parent
497c9801a7
commit
c92231d8e3
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue