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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user