[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
This commit is contained in:
Don Ho 2013-07-08 20:37:07 +00:00
parent 4dd7423f61
commit 4f66f6388c

View File

@ -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]);
}
}