X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dac189e7289c784c3469b31fd8c29c065bcf1fb..d5f46cddf12e131312240cf64e2dda084b07207d:/src/propgrid/propgridpagestate.cpp diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index 6736b69c3a..8c8d00667e 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -842,8 +842,7 @@ void wxPropertyGridPageState::PropagateColSizeDec( int column, void wxPropertyGridPageState::DoSetSplitterPosition( int newXPos, int splitterColumn, - bool WXUNUSED(allPages), - bool fromAutoCenter ) + int flags ) { wxPropertyGrid* pg = GetGrid(); @@ -878,7 +877,8 @@ void wxPropertyGridPageState::DoSetSplitterPosition( int newXPos, if ( splitterColumn == 0 ) m_fSplitterX = (double) newXPos; - if ( !fromAutoCenter ) + if ( !(flags & wxPG_SPLITTER_FROM_AUTO_CENTER) && + !(flags & wxPG_SPLITTER_FROM_EVENT) ) { // Don't allow initial splitter auto-positioning after this. m_isSplitterPreSet = true; @@ -1083,7 +1083,8 @@ void wxPropertyGridPageState::CheckColumnWidths( int widthChange ) } } - DoSetSplitterPosition((int)splitterX, 0, false, true); + DoSetSplitterPosition((int)splitterX, 0, + wxPG_SPLITTER_FROM_AUTO_CENTER); m_fSplitterX = splitterX; // needed to retain accuracy }