diff options
| author | nyamatongwe <unknown> | 2001-08-07 13:13:36 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-08-07 13:13:36 +0000 | 
| commit | ab087c899bf0ece12242f065844a26d2bc371da3 (patch) | |
| tree | 5696860276aede7528b89e09796f6d51e1e48d49 | |
| parent | f820761d6c2cbf5e64d4f7915e808eda1bc2cb0c (diff) | |
| download | scintilla-mirror-ab087c899bf0ece12242f065844a26d2bc371da3.tar.gz | |
Fixed bug with atomatic scrolling when some folding has been done caused
by using document line numbers rather than view line numbers.
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 68089a5d9..7c44dfb0c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3105,11 +3105,11 @@ void Editor::ButtonMove(Point pt) {  		// Autoscroll  		PRectangle rcClient = GetClientRectangle();  		if (pt.y > rcClient.bottom) { -			int lineMove = LineFromLocation(pt); +			int lineMove = cs.DisplayFromDoc(LineFromLocation(pt));  			ScrollTo(lineMove - LinesOnScreen() + 5);  			Redraw();  		} else if (pt.y < rcClient.top) { -			int lineMove = LineFromLocation(pt); +			int lineMove = cs.DisplayFromDoc(LineFromLocation(pt));  			ScrollTo(lineMove - 5);  			Redraw();  		} | 
