From c5b26d73a35f9d95aa88f8445d3ad16e4d93f9a3 Mon Sep 17 00:00:00 2001 From: Artur Wyszynski Date: Thu, 11 Feb 2010 05:05:41 +0000 Subject: [PATCH] Simplified logic for a previous fix git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35448 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Box.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/Box.cpp b/src/kits/interface/Box.cpp index 607160fbd6..da06a6f130 100644 --- a/src/kits/interface/Box.cpp +++ b/src/kits/interface/Box.cpp @@ -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