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)