Attempts to reduce errors in compile farm for
unusual combinations of platform/app git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -325,7 +325,15 @@ void MyFrame::OnUpdateUI( wxUpdateUIEvent &event )
|
||||
event.Enable( FALSE );
|
||||
break;
|
||||
case ID_DELETE:
|
||||
#ifdef __WXUNIVERSAL__
|
||||
event.Enable( m_text->HasSelection() );
|
||||
#else
|
||||
{
|
||||
long selFrom, selTo;
|
||||
m_text->GetSelection(& selFrom, & selTo);
|
||||
event.Enable( selFrom != selTo );
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user