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
This commit is contained in:
Julian Smart 2013-11-07 11:26:22 +00:00
parent 54a82234eb
commit 320ad25b71

View File

@ -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)