From 7152f0c68dfb73bad2a3dd0304f3723c18c9a668 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 16 Mar 2002 00:06:33 +0000 Subject: [PATCH] restore Robin's code (reverted previous commit) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrlwing.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 43f061c2d6..1cef14d60f 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1116,8 +1116,9 @@ bool wxGenericScrolledWindow::Layout() GetSizer()->SetDimension(x, y, w, h); return TRUE; } - else - return wxPanel::Layout(); // fall back to default for LayoutConstraints + + // fall back to default for LayoutConstraints + return wxPanel::Layout(); } void wxGenericScrolledWindow::OnPaint(wxPaintEvent& event)