diff options
| author | nyamatongwe <unknown> | 2011-08-10 19:53:34 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-08-10 19:53:34 +1000 | 
| commit | 706b3f5a9b8c7192983d20ff726f040cc0fa8966 (patch) | |
| tree | 3339085efc0c1d4604776ec6ce5e0ba755c28e7a /src | |
| parent | 7d81161370e2e4895d1f29ce1d2c207e97a7020b (diff) | |
| download | scintilla-mirror-706b3f5a9b8c7192983d20ff726f040cc0fa8966.tar.gz | |
Fix for wrong cursor near selection ends when scrolled horizontally. Bug #3389055.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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<sel.Count(); r++) {  		SelectionRange range = sel.Range(r);  		if (range.Contains(pos)) {  			bool hit = true;  			if (pos == range.Start()) {  				// see if just before selection -				if (pt.x < xPos) { +				if (pt.x < ptPos.x) {  					hit = false;  				}  			}  			if (pos == range.End()) {  				// see if just after selection -				if (pt.x > xPos) { +				if (pt.x > ptPos.x) {  					hit = false;  				}  			} | 
