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
This commit is contained in:
Ron Lee
2002-09-28 07:01:33 +00:00
parent 2a9e9415fa
commit 4c77c8865a

View File

@@ -107,22 +107,20 @@ void wxPanel::OnSize(wxSizeEvent& event)
#if wxUSE_CONSTRAINTS #if wxUSE_CONSTRAINTS
if (GetAutoLayout()) if (GetAutoLayout())
Layout(); Layout();
#endif // wxUSE_CONSTRAINTS
//
// Need to properly move child windows under OS/2
//
#if defined(__WXPM__) #if defined(__WXPM__)
else else
{ {
// Need to properly move child windows under OS/2
PSWP pWinSwp = GetSwp(); PSWP pWinSwp = GetSwp();
if (pWinSwp->cx == 0 && pWinSwp->cy == 0 && pWinSwp->fl == 0) if (pWinSwp->cx == 0 && pWinSwp->cy == 0 && pWinSwp->fl == 0)
// {
// Uninitialized // Uninitialized
//
::WinQueryWindowPos(GetHWND(), pWinSwp); ::WinQueryWindowPos(GetHWND(), pWinSwp);
else }
else
{ {
SWP vSwp; SWP vSwp;
int nYDiff; int nYDiff;
@@ -135,6 +133,8 @@ void wxPanel::OnSize(wxSizeEvent& event)
} }
} }
#endif #endif
#endif // wxUSE_CONSTRAINTS
event.Skip(); event.Skip();
} }