From 283ba553baf2a48e832a7cf48a9f2aba735617d5 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 10 Feb 2017 08:33:48 +0100 Subject: [PATCH] Change wxItemMenu GetLabel (deprecated) to GetItemLabelText GetLabel can compile or not, depending on the compatibility level used to build wxWidgets. --- common/tool/context_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/context_menu.cpp b/common/tool/context_menu.cpp index 0a54162c3f..0ed81f56f6 100644 --- a/common/tool/context_menu.cpp +++ b/common/tool/context_menu.cpp @@ -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 );