Simplified logic for a previous fix

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35448 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Artur Wyszynski 2010-02-11 05:05:41 +00:00
parent e457eb2a53
commit c5b26d73a3

View File

@ -563,14 +563,12 @@ BBox::DoLayout()
BView::DoLayout();
if (!fLabelView)
if (fLabelView)
AddChild(fLabelView, ChildAt(0));
else
return;
}
// Add it again..
if (layouted && fLabelView)
AddChild(fLabelView, ChildAt(0));
_ValidateLayoutData();
// Even if the user set a layout, restore label view to it's