]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed single word selection
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 18 Sep 2003 22:44:16 +0000 (22:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 18 Sep 2003 22:44:16 +0000 (22:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index f378ce4a9ebbee24f073712b22f162e8fde9414c..cda05a607abe5f5ac8f2e104dbb1b7057428962e 100644 (file)
@@ -62,8 +62,8 @@ void wxHtmlSelection::Set(const wxHtmlCell *fromCell, const wxHtmlCell *toCell)
     wxPoint p2 = toCell ? toCell->GetAbsPos() : wxDefaultPosition;
     if ( toCell )
     {
-        p2.x += toCell->GetWidth()-1;
-        p2.y += toCell->GetHeight()-1;
+        p2.x += toCell->GetWidth();
+        p2.y += toCell->GetHeight();
     }
     Set(p1, fromCell, p2, toCell);
 }