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 (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();
}