summaryrefslogtreecommitdiffstats
path: root/sc/qa/unit/filters-test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/filters-test.cxx')
-rw-r--r--sc/qa/unit/filters-test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index dfc4cc9db6da..8611df08aadb 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -195,8 +195,8 @@ ScDocShellRef FiltersTest::load(const rtl::OUString &rFilter, const rtl::OUStrin
if (!xDocShRef->DoLoad(&aSrcMed))
// load failed.
xDocShRef.Clear();
-// else
-// SfxObjectShell::SetCurrentComponent( xDocShRef->GetModel() );
+ else if (nFormatType)
+ SfxObjectShell::SetCurrentComponent( xDocShRef->GetModel() );
return xDocShRef;
}