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