Restore text drag-and-drop in wxSTC broken by Scintilla 2 update.

Drag and drop in wxStyledTextCtrl was broken, apparently since upgrade to
Scintilla 2. Restore it by using the correct wxDrag_XXX constants instead of
boolean values in the code for wxEVT_STC_START_DRAG events generation.

Closes #11709.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-10-16 18:11:06 +00:00
parent dd5ab30d6a
commit 676184202d
4 changed files with 6 additions and 5 deletions

View File

@@ -4573,7 +4573,7 @@ wxStyledTextEvent::wxStyledTextEvent(wxEventType commandType, int id)
m_listType = 0;
m_x = 0;
m_y = 0;
m_dragAllowMove = false;
m_dragAllowMove = wxDrag_CopyOnly;
#if wxUSE_DRAG_AND_DROP
m_dragResult = wxDragNone;
#endif