diff --git a/src/osx/choice_osx.cpp b/src/osx/choice_osx.cpp index fac0ccb173..df52d2cbd2 100644 --- a/src/osx/choice_osx.cpp +++ b/src/osx/choice_osx.cpp @@ -146,6 +146,11 @@ void wxChoice::DoDeleteOneItem(unsigned int n) if ( HasClientObjectData() ) delete GetClientObject( n ); + // Deselect item being removed + int selIdx = GetSelection(); + if ( selIdx != -1 && selIdx == n ) + SetSelection(-1); + dynamic_cast(GetPeer())->RemoveItem(n); m_strings.RemoveAt( n ) ; m_datas.RemoveAt( n ) ;