Fix dockable panels 0 width/height in multi-instance mode regression

Fix #9341, fix #9363
pull/9400/head
Don HO 2021-01-15 22:19:02 +01:00
parent 41c4180b2e
commit 67234d2269
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 7 additions and 7 deletions

View File

@ -688,15 +688,15 @@ LRESULT Notepad_plus::init(HWND hwnd)
// launch the plugin dlg memorized at the last session
//
DockingManagerData& dmd = nppGUI._dockingData;
_dockingManager.setDockedContSize(CONT_LEFT, nppGUI._dockingData._leftWidth);
_dockingManager.setDockedContSize(CONT_RIGHT, nppGUI._dockingData._rightWidth);
_dockingManager.setDockedContSize(CONT_TOP, nppGUI._dockingData._topHeight);
_dockingManager.setDockedContSize(CONT_BOTTOM, nppGUI._dockingData._bottomHight);
if (!nppGUI._isCmdlineNosessionActivated)
{
DockingManagerData& dmd = nppGUI._dockingData;
_dockingManager.setDockedContSize(CONT_LEFT, nppGUI._dockingData._leftWidth);
_dockingManager.setDockedContSize(CONT_RIGHT, nppGUI._dockingData._rightWidth);
_dockingManager.setDockedContSize(CONT_TOP, nppGUI._dockingData._topHeight);
_dockingManager.setDockedContSize(CONT_BOTTOM, nppGUI._dockingData._bottomHight);
for (size_t i = 0, len = dmd._pluginDockInfo.size(); i < len; ++i)
{
PluginDlgDockingInfo& pdi = dmd._pluginDockInfo[i];