diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index 0690d4456f..2ae7076d14 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -1886,6 +1886,9 @@ outlineView:(NSOutlineView*)outlineView wxDataViewColumn* const col([static_cast(tableColumn) getColumnPointer]); + wxDataViewCtrl* const dvc = implementation->GetDataViewCtrl(); + + // stop editing of a custom item first (if necessary) dvc->FinishCustomItemEditing();