From e9b45f19f9474adc26b212e9b7b936d3f118ba23 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 26 Dec 2018 09:37:35 +0100 Subject: [PATCH] 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. --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 735a7f3d81..cbe4849c49 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4873,7 +4873,7 @@ bool wxPropertyGrid::HandleMouseClick( int x, unsigned int y, wxMouseEvent &even m_propHover, NULL, wxPG_SEL_NOVALIDATE, - (unsigned int)m_draggedSplitter); + 0); // dragged splitter is always 0 here } } else if ( m_dragStatus == 0 )