Related: tdf#131767 explicitly get the odt filter

in the other place that looks similar in mailmerge

Change-Id: I9bd9b4ffe9c7f10ff2aaa604a62130c9dea1838d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91493
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index 3984af7..537a60e 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -86,7 +86,7 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage(weld::Container* pPage, SwMailMerge
{
    std::shared_ptr<const SfxFilter> pSfxFlt =
            SwDocShell::Factory().GetFilterContainer()->
            GetFilter4FilterName("writer8");
            GetFilter4FilterName("writer8", SfxFilterFlags::EXPORT);

    //save the current document into a temporary file
    {
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index 44a3248..adbc284 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -898,9 +898,9 @@ IMPL_LINK_NOARG(SwMMResultEmailDialog, SendDocumentsHdl_Impl, weld::Button&, voi
        {
            //Make sure we don't pick e.g. the flat xml filter
            //for this format
            pSfxFlt = SwIoSystem::GetFilterOfFormat(
                FILTER_XML,
                SwDocShell::Factory().GetFilterContainer() );
            pSfxFlt = pFilterContainer->GetFilter4FilterName(
                "writer8",
                SfxFilterFlags::EXPORT);
        }
        break;
        case MM_DOCTYPE_PDF: