From cdfd5e01663ff0febc9630ac4cfa317841b4fb26 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 5 Mar 2009 15:44:01 +0000 Subject: [PATCH] Prevent splitter sash being set below minimum size when moved (using the same minimum size for both windows is probably a bad design choice) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/splitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 441d57618a..7d8c193d11 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -614,7 +614,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; } -- 2.45.2