Prevent the splitter sash being set smaller than minimum size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-03-05 15:44:24 +00:00
parent acf0714a67
commit 4312d124eb

View File

@@ -612,7 +612,7 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const
minSize = m_minimumPaneSize;
int maxSize = GetWindowSize() - minSize - GetBorderSize() - GetSashSize();
if ( maxSize > 0 && sashPos > maxSize )
if ( maxSize > 0 && sashPos > maxSize && maxSize >= m_minimumPaneSize)
sashPos = maxSize;
}