summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-09-29 18:30:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-09-29 18:35:16 +0200
commit3581e9df565df6cb67992c25e47ff37fd85030b3 (patch)
tree43f32f2998c3674a84fbab3973280b5e420ae2fc /sc
parentFix gettext build against MacOSX SDK 10.7 (diff)
downloadcore-3581e9df565df6cb67992c25e47ff37fd85030b3.tar.gz
core-3581e9df565df6cb67992c25e47ff37fd85030b3.zip
init the unit test for vba unit tests correctly
Diffstat (limited to 'sc')
-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;
}