]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jul 2011 09:02:57 +0000 (09:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Jul 2011 09:02:57 +0000 (09:02 +0000)
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

samples/dataview/dataview.cpp

index ce215ffaafbbfa36af9d7302b7018d62810149d0..f3c8bb2074764a82dc907c1f4a0fd3b012011234 100644 (file)
@@ -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: