From e6a1735236100c4d240cb6a8e497f930592054d4 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 15 Jun 2024 20:45:58 +0200 Subject: [PATCH] Fix Find Replace size is not remembered through the sessions issue Fix #15294 --- PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index cbf506784..115eb424f 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -347,7 +347,7 @@ void FindReplaceDlg::create(int dialogID, bool isRTL, bool msgDestParent, bool t { RECT rc = getViewablePositionRect(nppGUI._findWindowPos); ::SetWindowPos(_hSelf, HWND_TOP, rc.left, rc.top, 0, 0, SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOACTIVATE); - ::SetWindowPos(_hSelf, HWND_TOP, 0, 0, _rc.right - _rc.left, _rc.bottom - _rc.top, swpFlags | SWP_NOMOVE); + ::SetWindowPos(_hSelf, HWND_TOP, 0, 0, rc.right - rc.left, _rc.bottom - _rc.top, swpFlags | SWP_NOMOVE); if ((swpFlags & SWP_SHOWWINDOW) == SWP_SHOWWINDOW) ::SendMessageW(_hSelf, DM_REPOSITION, 0, 0);