From 17f472c9c3f5e5af520f2b83469ba7a06d9528a2 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 23 Feb 2012 23:03:39 +0000 Subject: [PATCH] [FIXED_BUG] doc map: Fix folding (doc map view zone) problem. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@868 f5eea248-9336-0410-98b8-ebc06183d4e3 --- 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 d70eaf2b..22d9af3e 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -47,7 +47,7 @@ void DocumentMap::scrollMap() int firstVisibleDisplayLineMap = _pScintillaEditView->execute(SCI_GETFIRSTVISIBLELINE); int firstVisibleDocLineMap = _pScintillaEditView->execute(SCI_DOCLINEFROMVISIBLE, firstVisibleDisplayLineMap); int nbLineMap = _pScintillaEditView->execute(SCI_LINESONSCREEN, firstVisibleDocLineMap); - int lastVisibleDocLineMap = firstVisibleDisplayLineMap + nbLineMap; + int lastVisibleDocLineMap = (*_ppEditView)->execute(SCI_DOCLINEFROMVISIBLE, firstVisibleDisplayLineMap + nbLineMap); // If part of editor view is out of map, then scroll map if (lastVisibleDocLineMap < lastVisibleDocLine)