]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected a hit test problem when tabs are present
authorJulian Smart <julian@anthemion.co.uk>
Sun, 20 Feb 2011 12:05:13 +0000 (12:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 20 Feb 2011 12:05:13 +0000 (12:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index cac09f4e06f16dd314056d406c8fde858297135d..687a7c701f3ea398aa477c589e2b1a350f0fd4da 100644 (file)
@@ -5244,7 +5244,7 @@ int wxRichTextParagraph::HitTest(wxDC& dc, const wxPoint& pt, long& textPosition
                 int paraDescent;
 
                 // This calculates the partial text extents
                 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;
 
                 int lastX = linePos.x;
                 size_t i;