From 021e7626ac2cda0ec39e0673638778a5afd4623e Mon Sep 17 00:00:00 2001 From: "Unknown (BV)" Date: Wed, 12 May 1999 03:04:15 +0000 Subject: [PATCH] Modified OnSashPositionChange to take an int& instead of an int. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/splitter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index 951562b148..6cbb3453ec 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -125,8 +125,9 @@ public: // Called when the sash position is about to be changed, return // FALSE from here to prevent the change from taking place. + // Repositions sash to minimum position if pane would be too small. // newSashPosition here is always positive or zero. - virtual bool OnSashPositionChange(int newSashPosition); + virtual bool OnSashPositionChange(int& newSashPosition); // If the sash is moved to an extreme position, a subwindow // is removed from the splitter window, and the app is -- 2.45.2