From f4a4bd13d46c34069661766e9d3d2cfbdd0dbb86 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Oct 1998 13:29:15 +0000 Subject: [PATCH] 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 --- src/generic/splitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.45.2