[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:
parent
53b81b3186
commit
10d6809ddb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user