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:
Julian Smart
2002-08-24 10:01:47 +00:00
parent b96a8bdb60
commit 3f2b72b240
4 changed files with 25 additions and 12 deletions

View File

@@ -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;