X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/304862976530be1315f3861157168f6edea2195e..22fb32d5071b4a234cb600e50e59f971dd78d04a:/src/generic/scrlwing.cpp?ds=sidebyside diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index c17909a709..1cef14d60f 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -40,6 +40,7 @@ #include "wx/scrolwin.h" #include "wx/panel.h" #include "wx/timer.h" +#include "wx/sizer.h" #ifdef __WXMSW__ #include // for DLGC_WANTARROWS @@ -1115,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)