interchanged w and h in wxSplitterWindow::OnSashPositionChange (now

it does what expected)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-10-26 13:29:15 +00:00
parent dbf858b5d6
commit f4a4bd13d4

View File

@@ -676,12 +676,12 @@ bool wxSplitterWindow::OnSashPositionChange(int newSashPosition)
if ( m_splitMode == wxSPLIT_VERTICAL )
{
if ( h - newSashPosition < m_minimumPaneSize )
if ( w - newSashPosition < m_minimumPaneSize )
return FALSE;
}
else // m_splitMode = wxSPLIT_HORIZONTAL
{
if ( w - newSashPosition < m_minimumPaneSize )
if ( h - newSashPosition < m_minimumPaneSize )
return FALSE;
}