diff --git a/Src/FwCoreDlgs/FwFindReplaceDlg.cs b/Src/FwCoreDlgs/FwFindReplaceDlg.cs index e5f214150f..c0f31b4f87 100644 --- a/Src/FwCoreDlgs/FwFindReplaceDlg.cs +++ b/Src/FwCoreDlgs/FwFindReplaceDlg.cs @@ -2643,11 +2643,12 @@ public void ApplyWS(FwTextBox fwTextBox, int hvoWs) { CheckDisposed(); + // Select the text before applying WS (LT-21845). + fwTextBox.Select(); fwTextBox.ApplyWS(hvoWs); if (chkMatchWS.Enabled) chkMatchWS.Checked = true; SetFormatLabels(); - fwTextBox.Select(); } /// ------------------------------------------------------------------------------------