From: Robert Roebling Date: Wed, 21 Jan 2009 15:14:33 +0000 (+0000) Subject: Use wxDF_UNICODETEXT to make wxMSW crash X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/05527158e574b594b52ad06c29b5b1ac1aa29639?ds=sidebyside Use wxDF_UNICODETEXT to make wxMSW crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index d59ca05770..fda3662599 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -807,8 +807,8 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int m_music_model = new MyMusicModel; m_musicCtrl->AssociateModel( m_music_model.get() ); - m_musicCtrl->EnableDragSource( wxDF_TEXT ); - m_musicCtrl->EnableDropTarget( wxDF_TEXT ); + m_musicCtrl->EnableDragSource( wxDF_UNICODETEXT ); + m_musicCtrl->EnableDropTarget( wxDF_UNICODETEXT ); wxDataViewTextRenderer *tr = new wxDataViewTextRenderer( wxT("string"), wxDATAVIEW_CELL_INERT ); wxDataViewColumn *column0 = new wxDataViewColumn( wxT("title"), tr, 0, 200, wxALIGN_LEFT, @@ -1182,7 +1182,7 @@ void MyFrame::OnDropPossible( wxDataViewEvent &event ) if (m_music_model->IsContainer( item ) ) event.Veto(); - if (event.GetDataFormat() != wxDF_TEXT) + if (event.GetDataFormat() != wxDF_UNICODETEXT) event.Veto(); } @@ -1197,7 +1197,7 @@ void MyFrame::OnDrop( wxDataViewEvent &event ) return; } - if (event.GetDataFormat() != wxDF_TEXT) + if (event.GetDataFormat() != wxDF_UNICODETEXT) { event.Veto(); return;