Author: aljen Date: 2010-02-11 06:05:41 +0100 (Thu, 11 Feb 2010) New Revision: 35448 Changeset: http://dev.haiku-os.org/changeset/35448/haiku Modified: haiku/trunk/src/kits/interface/Box.cpp Log: Simplified logic for a previous fix Modified: haiku/trunk/src/kits/interface/Box.cpp =================================================================== --- haiku/trunk/src/kits/interface/Box.cpp 2010-02-11 04:36:59 UTC (rev 35447) +++ haiku/trunk/src/kits/interface/Box.cpp 2010-02-11 05:05:41 UTC (rev 35448) @@ -563,14 +563,12 @@ 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