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

Change-Id: Ibab3e920e6830c86bb6bfba070f14ca8a153c25f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124429
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 4ae05a0..3bc7a52 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -1080,7 +1080,10 @@ void SvxScriptOrgDialog::RestorePreviousSelection()
    }

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

namespace {