[BUG_FIXED] (Author: Mathias Kresin) Fix closing bug in doc switcher via the context menu (right clicking of an unselected item).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1179 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2014-02-17 00:11:41 +00:00
parent 53b81b3186
commit 10d6809ddb
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ BOOL CALLBACK VerticalFileSwitcher::run_dlgProc(UINT message, WPARAM wParam, LPA
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE) lParam;
int nbItem = ListView_GetItemCount(_fileListView.getHSelf());
if (nbItem == 1)
if (nbSelectedFiles() == 1)
{
int i = lpnmitem->iItem;
if (i == -1 || i >= nbItem)