Corrected a hit test problem when tabs are present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
89a5da7c75
commit
fc5bebcef4
@ -5244,7 +5244,7 @@ int wxRichTextParagraph::HitTest(wxDC& dc, const wxPoint& pt, long& textPosition
|
||||
int paraDescent;
|
||||
|
||||
// This calculates the partial text extents
|
||||
GetRangeSize(lineRange, paraSize, paraDescent, dc, wxRICHTEXT_UNFORMATTED, wxPoint(0,0), & partialExtents);
|
||||
GetRangeSize(lineRange, paraSize, paraDescent, dc, wxRICHTEXT_UNFORMATTED, linePos, & partialExtents);
|
||||
|
||||
int lastX = linePos.x;
|
||||
size_t i;
|
||||
|
Loading…
Reference in New Issue
Block a user