]> git.saurik.com Git - wxWidgets.git/commitdiff
Correction for the #define wxUSE_DRAG_AND_DROP 0 case
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Mon, 9 Jan 2012 07:18:19 +0000 (07:18 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Mon, 9 Jan 2012 07:18:19 +0000 (07:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index a0feef5dc74ea5cdc387c01fd8a666d9c8595f01..c4eaf87a049f5f10bde8b87bc8e02e43787ebcdf 100644 (file)
@@ -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;