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:
parent
1bcbbb41cd
commit
283ba553ba
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue