Fix index of dragged splitter sent with EVT_PG_COL_DRAGGING

Re-centering the splitter with mouse double-click works only if we have two columns so only splitter 0 can be clicked.
This commit is contained in:
Artur Wieczorek
2018-12-26 09:37:35 +01:00
parent 1042521706
commit e9b45f19f9

View File

@@ -4873,7 +4873,7 @@ bool wxPropertyGrid::HandleMouseClick( int x, unsigned int y, wxMouseEvent &even
m_propHover, m_propHover,
NULL, NULL,
wxPG_SEL_NOVALIDATE, wxPG_SEL_NOVALIDATE,
(unsigned int)m_draggedSplitter); 0); // dragged splitter is always 0 here
} }
} }
else if ( m_dragStatus == 0 ) else if ( m_dragStatus == 0 )