diff --git a/PowerEditor/src/MISC/PluginsManager/PluginsManager.h b/PowerEditor/src/MISC/PluginsManager/PluginsManager.h index 011077898..19a571cc5 100644 --- a/PowerEditor/src/MISC/PluginsManager/PluginsManager.h +++ b/PowerEditor/src/MISC/PluginsManager/PluginsManager.h @@ -95,7 +95,10 @@ public: void notify(SCNotification *notification) { for (size_t i = 0 ; i < _pluginInfos.size() ; i++) { - _pluginInfos[i]->_pBeNotified(notification); + // To avoid the plugin change the data in SCNotification + // Each notification to pass to a plugin is a copy of SCNotification instance + SCNotification scNotif = *notification; + _pluginInfos[i]->_pBeNotified(&scNotif); } };