mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 12:54:42 +02:00
[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;
|
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE) lParam;
|
||||||
int nbItem = ListView_GetItemCount(_fileListView.getHSelf());
|
int nbItem = ListView_GetItemCount(_fileListView.getHSelf());
|
||||||
|
|
||||||
if (nbItem == 1)
|
if (nbSelectedFiles() == 1)
|
||||||
{
|
{
|
||||||
int i = lpnmitem->iItem;
|
int i = lpnmitem->iItem;
|
||||||
if (i == -1 || i >= nbItem)
|
if (i == -1 || i >= nbItem)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user