Change wxItemMenu GetLabel (deprecated) to GetItemLabelText

GetLabel can compile or not, depending on the compatibility level used to build wxWidgets.
This commit is contained in:
jean-pierre charras 2017-02-10 08:33:48 +01:00
parent 1bcbbb41cd
commit 283ba553ba
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void CONTEXT_MENU::DisplayTitle( bool aDisplay )
{
// Destroy the menu entry keeping the title..
wxMenuItem* item = FindItemByPosition( 0 );
wxASSERT( item->GetLabel() == GetTitle() );
wxASSERT( item->GetItemLabelText() == GetTitle() );
Destroy( item );
// ..and separator
item = FindItemByPosition( 0 );