]> git.saurik.com Git - wxWidgets.git/commitdiff
interchanged w and h in wxSplitterWindow::OnSashPositionChange (now
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Oct 1998 13:29:15 +0000 (13:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Oct 1998 13:29:15 +0000 (13:29 +0000)
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

index 7f631aa457f8631090dee6ecbf10299c45f3e2ed..bc24c4bae5fe3e32ab7286303aeb6cc83a4fc198 100644 (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;
   }