From: Vadim Zeitlin Date: Mon, 26 Oct 1998 13:29:15 +0000 (+0000) Subject: interchanged w and h in wxSplitterWindow::OnSashPositionChange (now X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f4a4bd13d46c34069661766e9d3d2cfbdd0dbb86 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 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 7f631aa457..bc24c4bae5 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -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; }