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:
@@ -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 )
|
||||||
|
Reference in New Issue
Block a user