]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix compilation when wxUSE_DRAG_AND_DROP=0
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 22 May 2012 07:37:10 +0000 (07:37 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 22 May 2012 07:37:10 +0000 (07:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index e4ab3de1767df692bec693f3e019f5d7f21cb1f5..18feedf3ec0efbe0b0b763e02ec96bda1ebc517b 100644 (file)
@@ -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 */);