Prevent sending wxEVT_PG_LABEL_EDIT_ENDING events recursively, cont.

Spurious wxEVT_PG_LABEL_EDIT_ENDING events shouldn't be generated also if wxPropertyGrid::DoEndLabelEdit() function is reentered multiple times (constraint for selected column should be removed from the guard because column index is set to 1 after first reentry and no longer reflects original value stored in the event object).

Closes #16864.
This commit is contained in:
Artur Wieczorek 2015-04-28 20:55:17 +02:00
parent f0a2a6472f
commit 7426497a4b

View File

@ -1080,8 +1080,7 @@ void wxPropertyGrid::DoEndLabelEdit( bool commit, int selFlags )
// for the same property and the same label.
if ( m_processedEvent &&
m_processedEvent->GetEventType() == wxEVT_PG_LABEL_EDIT_ENDING &&
m_processedEvent->GetProperty() == prop &&
m_processedEvent->GetColumn() == m_selColumn)
m_processedEvent->GetProperty() == prop )
{
return;
}