From b3a9ec5dfeb74161e8a39b6aab7f897854cc02de Mon Sep 17 00:00:00 2001 From: Shridhar Kumar <45252729+shriprem@users.noreply.github.com> Date: Wed, 18 May 2022 17:21:20 -0400 Subject: [PATCH] Fix a small regression of DebugInfo Select the entire DebugInfo text, with the command line params inserted. This is a minor fix for an issue resulting from the last-minute changes in commit 0f8d572 (Add command line argument for plugin, a related notification and an API). Close #11697 --- PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp index ced64fa0a..df5eae6a2 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp @@ -400,7 +400,7 @@ void DebugInfoDlg::refreshDebugInfo() // Set Debug Info text and leave the text in selected state ::SetDlgItemText(_hSelf, IDC_DEBUGINFO_EDIT, debugInfoDisplay.c_str()); - ::SendDlgItemMessage(_hSelf, IDC_DEBUGINFO_EDIT, EM_SETSEL, 0, _debugInfoStr.length() - 1); + ::SendDlgItemMessage(_hSelf, IDC_DEBUGINFO_EDIT, EM_SETSEL, 0, debugInfoDisplay.length() - 1); ::SetFocus(::GetDlgItem(_hSelf, IDC_DEBUGINFO_EDIT)); }