]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
construct icon from wxIconLocation, not just the file name without index: this fixes...
[wxWidgets.git] / src / generic / splitter.cpp
index bbdaad1e6a50fe7ae3c43092f3be49db35cd315d..11ab7e9734822f083470c67ae5d0f1d1a1cafe67 100644 (file)
     #include "wx/settings.h"
 #endif
 
+#ifdef __WXMAC__
+    #include "wx/mac/private.h"
+#endif
+
 #include "wx/renderer.h"
 
 #include "wx/splitter.h"
@@ -563,7 +567,7 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const
         if ( minSize == -1 || m_minimumPaneSize > minSize )
             minSize = m_minimumPaneSize;
 
-        int maxSize = window_size - minSize - GetBorderSize();
+        int maxSize = window_size - minSize - GetBorderSize() - GetSashSize();
         if ( sashPos > maxSize )
             sashPos = maxSize;
     }