From: Vadim Zeitlin Date: Mon, 4 Jul 2011 09:02:57 +0000 (+0000) Subject: Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0cc1991e2a3ae8df8f716d5a9bf1a59e2a17d0b3 Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample. Unicode text is not supported in non-Unicode builds. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index ce215ffaaf..f3c8bb2074 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -540,10 +540,10 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l m_music_model = new MyMusicTreeModel; m_ctrl[0]->AssociateModel( m_music_model.get() ); -#if wxUSE_DRAG_AND_DROP +#if wxUSE_DRAG_AND_DROP && wxUSE_UNICODE m_ctrl[0]->EnableDragSource( wxDF_UNICODETEXT ); m_ctrl[0]->EnableDropTarget( wxDF_UNICODETEXT ); -#endif // wxUSE_DRAG_AND_DROP +#endif // wxUSE_DRAG_AND_DROP && wxUSE_UNICODE // column 0 of the view control: