From 0c55b381dae9cc2d2c951fa8ac227e3940df9ebf Mon Sep 17 00:00:00 2001 From: Derek Date: Tue, 12 Jun 2018 07:00:24 -0400 Subject: [PATCH] Fix a bug where the document map highlights incorrectly when the view is scrolled past the end of the file. Fix #4579, close #4580 --- PowerEditor/src/WinControls/DocumentMap/documentMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp index f90dd780..a2e88b28 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -248,7 +248,7 @@ void DocumentMap::scrollMap() if (lowerY == 0) { auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, firstVisibleDocLine); - lowerY = nbLine * lineHeight + firstVisibleDocLine; + lowerY = nbLine * lineHeight + higherY; } } else