From 4f66f6388cb830ccf2b1bda8b29e107256929fdc Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 8 Jul 2013 20:37:07 +0000 Subject: [PATCH] [BUG_FIXED] prevent from crash in debug mode. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1075 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index abd431799..67a7e60dd 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -850,8 +850,8 @@ void Notepad_plus::saveDockingParams() } floatContArray[floatCont] = 1; } - - vPluginDockInfo.push_back(nppGUI._dockingData._pluginDockInfo[i]); + if (i < nppGUI._dockingData._pluginDockInfo.size()) // to prevent from crash in debug mode + vPluginDockInfo.push_back(nppGUI._dockingData._pluginDockInfo[i]); } }