fixed the viewColor bug

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13120 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2005-06-14 15:37:43 +00:00
parent 1cc148a946
commit 7faaf6ba8b

View File

@ -3162,7 +3162,10 @@ BView::RemoveSelf()
BView *
BView::Parent() const
{
return parent;
if (parent && parent->top_level_view)
return NULL;
else
return parent;
}