Better check if the area exist.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -862,7 +862,8 @@ void
|
|||||||
SATGroup::_SplitGroupIfNecessary(SATWindow* removedWindow)
|
SATGroup::_SplitGroupIfNecessary(SATWindow* removedWindow)
|
||||||
{
|
{
|
||||||
// if there are windows stacked in the area we don't need to split
|
// if there are windows stacked in the area we don't need to split
|
||||||
if (removedWindow->GetWindowArea()->WindowList().CountItems() > 1)
|
WindowArea* area = removedWindow->GetWindowArea();
|
||||||
|
if (!area || area->WindowList().CountItems() > 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
WindowAreaList neighbourWindows;
|
WindowAreaList neighbourWindows;
|
||||||
|
|||||||
Reference in New Issue
Block a user