mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:51:55 +00:00
added check for a valid view in NSView's _pathBetweenSubview... method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2834 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
adcfd5fb0f
commit
5d589124bb
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ static NSRecursiveLock *gnustep_gui_nsview_lock = nil;
|
||||||
NSMutableArray* array = [NSMutableArray array];
|
NSMutableArray* array = [NSMutableArray array];
|
||||||
NSView* view = subview;
|
NSView* view = subview;
|
||||||
|
|
||||||
while (view != _superview) {
|
while (view && view != _superview) {
|
||||||
[array addObject:view];
|
[array addObject:view];
|
||||||
view = view->super_view;
|
view = view->super_view;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue