Fix bug in Layout.cpp's ViewRemover struct. operator() didn't deal well with NULLs.
This commit is contained in:
parent
90e615679c
commit
f87e4c7302
@ -47,6 +47,7 @@ namespace {
|
|||||||
|
|
||||||
struct ViewRemover {
|
struct ViewRemover {
|
||||||
inline void operator()(BView* view) {
|
inline void operator()(BView* view) {
|
||||||
|
if (view)
|
||||||
BView::Private(view).RemoveSelf();
|
BView::Private(view).RemoveSelf();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user