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