Related: tdf#145377 call select handler if restoring previously selected script

Change-Id: Ibab3e920e6830c86bb6bfba070f14ca8a153c25f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124200
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index b000b4b..b840911 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -1082,7 +1082,10 @@ void SvxScriptOrgDialog::RestorePreviousSelection()
    }

    if (xEntry)
    {
        m_xScriptsBox->set_cursor(*xEntry);
        ScriptSelectHdl(*m_xScriptsBox);
    }
}

namespace {