Get rid of unnecessary variable in wxPropertyGrid
This commit is contained in:
@@ -4980,9 +4980,7 @@ bool wxPropertyGrid::HandleMouseDoubleClick( int WXUNUSED(x),
|
|||||||
if ( m_propHover )
|
if ( m_propHover )
|
||||||
{
|
{
|
||||||
// Select property here as well
|
// Select property here as well
|
||||||
wxPGProperty* p = m_propHover;
|
AddToSelectionFromInputEvent(m_propHover, m_colHover, &event);
|
||||||
|
|
||||||
AddToSelectionFromInputEvent(p, m_colHover, &event);
|
|
||||||
|
|
||||||
// Send double-click event.
|
// Send double-click event.
|
||||||
SendEvent( wxEVT_PG_DOUBLE_CLICK, m_propHover );
|
SendEvent( wxEVT_PG_DOUBLE_CLICK, m_propHover );
|
||||||
|
Reference in New Issue
Block a user