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
This commit is contained in:
@@ -856,8 +856,8 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event)
|
|||||||
if (m_dragging
|
if (m_dragging
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
&& !m_preDrag
|
&& !m_preDrag
|
||||||
#endif
|
|
||||||
&& (distance > 4)
|
&& (distance > 4)
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
wxRichTextParagraphLayoutBox* commonAncestor = NULL;
|
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 (hitObj && m_dragging && hit != wxRICHTEXT_HITTEST_NONE && m_selectionState == wxRichTextCtrlSelectionState_Normal
|
||||||
#if wxUSE_DRAG_AND_DROP
|
#if wxUSE_DRAG_AND_DROP
|
||||||
&& !m_preDrag
|
&& !m_preDrag
|
||||||
#endif
|
|
||||||
&& (distance > 4)
|
&& (distance > 4)
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SetCaretPositionAfterClick(container, position, hit, true /* extend selection */);
|
SetCaretPositionAfterClick(container, position, hit, true /* extend selection */);
|
||||||
|
Reference in New Issue
Block a user