X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eeea3b039ef9bf03c17f80ab911cf65f084731bd..c29c95fe24973b94fd724db767193171ca7c513d:/samples/dataview/dataview.cpp?ds=inline 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: