Compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -228,7 +228,10 @@ void MyFrame::OnOpen( wxCommandEvent& WXUNUSED(event) )
|
|||||||
{
|
{
|
||||||
m_text->Clear();
|
m_text->Clear();
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXX11__
|
#ifdef __WXX11__
|
||||||
|
// requires wxUSE_UNIV_TEXTCTRL to be set to 0
|
||||||
|
#if 0
|
||||||
wxFileName fname( dialog.GetPath() );
|
wxFileName fname( dialog.GetPath() );
|
||||||
if ((fname.GetExt() == _T("cpp")) ||
|
if ((fname.GetExt() == _T("cpp")) ||
|
||||||
(fname.GetExt() == _T("c")) ||
|
(fname.GetExt() == _T("c")) ||
|
||||||
@@ -253,6 +256,7 @@ void MyFrame::OnOpen( wxCommandEvent& WXUNUSED(event) )
|
|||||||
{
|
{
|
||||||
m_text->SetLanguage( wxSOURCE_LANG_NONE );
|
m_text->SetLanguage( wxSOURCE_LANG_NONE );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_filename = dialog.GetPath();
|
m_filename = dialog.GetPath();
|
||||||
|
Reference in New Issue
Block a user