diff options
Diffstat (limited to 'sw/source/uibase/app/docsh2.cxx')
-rw-r--r-- | sw/source/uibase/app/docsh2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index 92c6b1b83715..8b5a6d95f704 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -1574,7 +1574,9 @@ int SwFindDocShell( SfxObjectShellRef& xDocSh, std::shared_ptr<const SfxFilter> pSfxFlt; if (!xMed->GetError()) { - SfxFilterMatcher aMatcher( OUString::createFromAscii(SwDocShell::Factory().GetShortName()) ); + SfxFilterMatcher aMatcher( rFilter == "writerglobal8" + ? OUString::createFromAscii(SwGlobalDocShell::Factory().GetShortName()) + : OUString::createFromAscii(SwDocShell::Factory().GetShortName()) ); // No Filter, so search for it. Else test if the one passed is a valid one if( !rFilter.isEmpty() ) |