Browse Source

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

Fix #9341, fix #9363
pull/9400/head
Don HO 4 years ago
parent
commit
67234d2269
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
  1. 14
      PowerEditor/src/Notepad_plus.cpp

14
PowerEditor/src/Notepad_plus.cpp

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

Loading…
Cancel
Save