From 4c77c8865abb961e2d4bfa0dc9fb4f3a37eb41f6 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Sat, 28 Sep 2002 07:01:33 +0000 Subject: [PATCH] Disallow the possibility of a dangling 'else'. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/panelg.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 0c7b85fb42..d7f69ce937 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -107,22 +107,20 @@ void wxPanel::OnSize(wxSizeEvent& event) #if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); -#endif // wxUSE_CONSTRAINTS - - // - // Need to properly move child windows under OS/2 - // #if defined(__WXPM__) else { + // Need to properly move child windows under OS/2 + PSWP pWinSwp = GetSwp(); if (pWinSwp->cx == 0 && pWinSwp->cy == 0 && pWinSwp->fl == 0) - // + { // Uninitialized - // + ::WinQueryWindowPos(GetHWND(), pWinSwp); - else + } + else { SWP vSwp; int nYDiff; @@ -135,6 +133,8 @@ void wxPanel::OnSize(wxSizeEvent& event) } } #endif +#endif // wxUSE_CONSTRAINTS + event.Skip(); }