From 706b3f5a9b8c7192983d20ff726f040cc0fa8966 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 10 Aug 2011 19:53:34 +1000 Subject: Fix for wrong cursor near selection ends when scrolled horizontally. Bug #3389055. --- src/Editor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 452666be7..f6b1ea308 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6020,20 +6020,20 @@ bool Editor::PositionInSelection(int pos) { bool Editor::PointInSelection(Point pt) { SelectionPosition pos = SPositionFromLocation(pt, false, true); - int xPos = XFromPosition(pos); + Point ptPos = LocationFromPosition(pos); for (size_t r=0; r xPos) { + if (pt.x > ptPos.x) { hit = false; } } -- cgit v1.2.3