From 55e0100847e113399e2c547343dbda3e7ccca19f Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Tue, 22 May 2012 07:37:10 +0000 Subject: [PATCH] Fix compilation when wxUSE_DRAG_AND_DROP=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index e4ab3de..18feedf 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -856,8 +856,8 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event) if (m_dragging #if wxUSE_DRAG_AND_DROP && !m_preDrag -#endif && (distance > 4) +#endif ) { wxRichTextParagraphLayoutBox* commonAncestor = NULL; @@ -934,8 +934,8 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event) if (hitObj && m_dragging && hit != wxRICHTEXT_HITTEST_NONE && m_selectionState == wxRichTextCtrlSelectionState_Normal #if wxUSE_DRAG_AND_DROP && !m_preDrag -#endif && (distance > 4) +#endif ) { SetCaretPositionAfterClick(container, position, hit, true /* extend selection */); -- 2.7.4