[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
This commit is contained in:
Don Ho 2012-02-23 23:03:39 +00:00
parent a1d9f0f4b4
commit 17f472c9c3
1 changed files with 1 additions and 1 deletions

View File

@ -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)