From: Jouk Jansen Date: Mon, 9 Jan 2012 07:18:19 +0000 (+0000) Subject: Correction for the #define wxUSE_DRAG_AND_DROP 0 case X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9fa7b43626f2ee7be5c6e2fe5016117a8fb7062a Correction for the #define wxUSE_DRAG_AND_DROP 0 case git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index a0feef5dc7..c4eaf87a04 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -232,7 +232,9 @@ wxRichTextCtrl::wxRichTextCtrl(wxWindow* parent, Init(); Create(parent, id, value, pos, size, style, validator, name); +#if wxUSE_DRAG_AND_DROP SetDropTarget(new wxRichTextDropTarget(this)); +#endif } /// Creation @@ -355,7 +357,9 @@ void wxRichTextCtrl::Init() m_editable = true; m_caretAtLineStart = false; m_dragging = false; +#if wxUSE_DRAG_AND_DROP m_preDrag = false; +#endif m_fullLayoutRequired = false; m_fullLayoutTime = 0; m_fullLayoutSavedPosition = 0;