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:
@@ -1080,8 +1080,7 @@ void wxPropertyGrid::DoEndLabelEdit( bool commit, int selFlags )
|
|||||||
// for the same property and the same label.
|
// for the same property and the same label.
|
||||||
if ( m_processedEvent &&
|
if ( m_processedEvent &&
|
||||||
m_processedEvent->GetEventType() == wxEVT_PG_LABEL_EDIT_ENDING &&
|
m_processedEvent->GetEventType() == wxEVT_PG_LABEL_EDIT_ENDING &&
|
||||||
m_processedEvent->GetProperty() == prop &&
|
m_processedEvent->GetProperty() == prop )
|
||||||
m_processedEvent->GetColumn() == m_selColumn)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user