fix warnings about conversion to bool, closes #14381
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -434,7 +434,7 @@ bool wxMenuBar::IsEnabledTop(size_t pos) const
|
||||
wxCHECK_MSG( node, false, wxS("invalid index in IsEnabledTop") );
|
||||
wxMenu* const menu = node->GetData();
|
||||
wxCHECK_MSG( menu->m_owner, true, wxS("no menu owner?") );
|
||||
return gtk_widget_get_sensitive( menu->m_owner );
|
||||
return gtk_widget_get_sensitive( menu->m_owner ) != 0;
|
||||
}
|
||||
|
||||
wxString wxMenuBar::GetMenuLabel( size_t pos ) const
|
||||
|
Reference in New Issue
Block a user