From 1023a17c5fa30ce67c0ee025da0866628c2df777 Mon Sep 17 00:00:00 2001 From: donho Date: Sun, 6 Apr 2008 12:09:49 +0000 Subject: [PATCH] git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@163 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp b/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp index 87ca7afa3..78e098908 100644 --- a/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp +++ b/PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp @@ -213,7 +213,7 @@ void PluginsManager::setMenu(HMENU hMenu, const char *menuName) _pluginsCommands.push_back(PluginCommand(_pluginInfos[i]->_moduleName, j, _pluginInfos[i]->_funcItems[j]._pFunc)); int cmdID = ID_PLUGINS_CMD + (_pluginsCommands.size() - 1); - _pluginInfos[i]->_funcItems[j]._cmdID = (_pluginInfos[i]->_funcItems[j]._pFunc == NULL)?0:cmdID; + _pluginInfos[i]->_funcItems[j]._cmdID = cmdID; string itemName = _pluginInfos[i]->_funcItems[j]._itemName; if (_pluginInfos[i]->_funcItems[j]._pShKey)