diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index 686963e742bf..179f28b54d23 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -717,8 +717,8 @@ IMPL_LINK_NOARG(SwMMResultSaveDialog, SaveOutputHdl_Impl, weld::Button&, void) try { pValues[0].Value <<= sFilter; - uno::Reference< frame::XStorable > xTempStore( xTempDocShell->GetModel(), uno::UNO_QUERY); - xTempStore->storeToURL( sOutPath, aValues ); + rtl::Reference pTempModel = xTempDocShell->GetBaseModel(); + pTempModel->storeToURL(sOutPath, aValues); } catch (const uno::Exception&) {