From 67234d22697f054e2f3b6985a87195eb00744bcb Mon Sep 17 00:00:00 2001 From: Don HO Date: Fri, 15 Jan 2021 22:19:02 +0100 Subject: [PATCH] Fix dockable panels 0 width/height in multi-instance mode regression Fix #9341, fix #9363 --- PowerEditor/src/Notepad_plus.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 2b05c76b3..5861dc8df 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -688,15 +688,15 @@ LRESULT Notepad_plus::init(HWND hwnd) // launch the plugin dlg memorized at the last session // - if (!nppGUI._isCmdlineNosessionActivated) - { - DockingManagerData& dmd = nppGUI._dockingData; + 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); + _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) + { for (size_t i = 0, len = dmd._pluginDockInfo.size(); i < len; ++i) { PluginDlgDockingInfo& pdi = dmd._pluginDockInfo[i];