tdf#124513 let wizard reappear on tabbing back to document

where it was showing before tabbing away

Change-Id: Ia87aeb9789ae034611431983c6489569a59d47d3
Reviewed-on: https://gerrit.libreoffice.org/83434
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit f31d36966bceb90e261cbecd42634bde4448d527)
Reviewed-on: https://gerrit.libreoffice.org/83781
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit 95846782231096345e9a09b3fa35355316ef50fe)
Reviewed-on: https://gerrit.libreoffice.org/83973
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 3c412a9..08ad10c 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -287,6 +287,9 @@ ScInputHandler* ScFormulaDlg::GetNextInputHandler(const ScDocShell* pDocShell, S

void ScFormulaDlg::Close()
{
    if (IsClosing())
        return;

    DoEnter();
}