From 02086c9c0cfae4b9cbdc75bee2607d162c8037f3 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 4 Jun 2013 00:28:50 +0000 Subject: [PATCH] [BUG_FIXED] (Author: CodeForLife) Fix Incorrect Macro Deleted from Macro Menu. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1053 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/WinControls/Grid/ShortcutMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/Grid/ShortcutMapper.cpp b/PowerEditor/src/WinControls/Grid/ShortcutMapper.cpp index 06e7a0a6..133743b6 100644 --- a/PowerEditor/src/WinControls/Grid/ShortcutMapper.cpp +++ b/PowerEditor/src/WinControls/Grid/ShortcutMapper.cpp @@ -373,7 +373,7 @@ BOOL CALLBACK ShortcutMapper::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP nppParam->getAccelerator()->updateShortcuts(); // All menu items are shifted up. So we delete the last item - ::RemoveMenu(hMenu, posBase + nbElem - 1, MF_BYPOSITION); + ::RemoveMenu(hMenu, posBase + nbElem, MF_BYPOSITION); if (nbElem == 0) {