From 320ad25b7152ee2c5525f4dbc7977eccff43726d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 7 Nov 2013 11:26:22 +0000 Subject: [PATCH] Improved multiple table cell selection, especially for empty cells. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 7105f187c1..185b136cdc 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -896,7 +896,7 @@ void wxRichTextCtrl::OnMoveMouse(wxMouseEvent& event) long position2 = 0; wxRichTextObject* hitObj2 = NULL, *contextObj2 = NULL; int hit2 = GetBuffer().HitTest(dc, context, GetUnscaledPoint(logicalPt), position2, & hitObj2, & contextObj2, 0); - if (hit2 != wxRICHTEXT_HITTEST_NONE && !(hit2 & wxRICHTEXT_HITTEST_OUTSIDE) && hitObj2 && hitObj != hitObj2) + if (hit2 != wxRICHTEXT_HITTEST_NONE && hitObj2 && hitObj != hitObj2) { // See if we can find a common ancestor if (m_selectionState == wxRichTextCtrlSelectionState_Normal)