From: Vadim Zeitlin Date: Fri, 14 Nov 2008 23:44:59 +0000 (+0000) Subject: do override SetSplitterPosition() in wxPropertyGridPage: this was clearly meant to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4311ac1ef6753a5a1bfbee6d618d88069d589996 do override SetSplitterPosition() in wxPropertyGridPage: this was clearly meant to happen but wasn't because of signature mismatch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/propgrid/manager.h b/include/wx/propgrid/manager.h index 1ecbf84e88..26ff6a8688 100644 --- a/include/wx/propgrid/manager.h +++ b/include/wx/propgrid/manager.h @@ -163,7 +163,8 @@ protected: */ virtual void DoSetSplitterPosition( int pos, int splitterColumn = 0, - bool allPages = false ); + bool allPages = false, + bool fromAutoCenter = false ); /** Propagate to other pages. */ diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index c156cb3281..9c69c43d8d 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -207,7 +207,10 @@ void wxPropertyGridPage::SetSplitterPosition( int splitterPos, int col ) DoSetSplitterPosition(splitterPos, col, false); } -void wxPropertyGridPage::DoSetSplitterPosition( int pos, int splitterColumn, bool allPages ) +void wxPropertyGridPage::DoSetSplitterPosition( int pos, + int splitterColumn, + bool allPages, + bool WXUNUSED(fromAutoCenter) ) { if ( allPages && m_manager->GetPageCount() ) m_manager->SetSplitterPosition( pos, splitterColumn );