summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/extras/htmlexport/htmlexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx
index c86b2f40b8e6..ed264e22e500 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -38,7 +38,7 @@ private:
void preTest(const char* filename) SAL_OVERRIDE
{
- if (OString(filename) == "charborder.odt")
+ if (OString(filename) == "charborder.odt" && SW_MOD())
{
// FIXME if padding-top gets exported as inches, not cms, we get rounding errors.
SwMasterUsrPref* pPref = const_cast<SwMasterUsrPref*>(SW_MOD()->GetUsrPref(false));
@@ -49,7 +49,7 @@ private:
void postTest(const char* filename) SAL_OVERRIDE
{
- if (OString(filename) == "charborder.odt")
+ if (OString(filename) == "charborder.odt" && SW_MOD())
{
SwMasterUsrPref* pPref = const_cast<SwMasterUsrPref*>(SW_MOD()->GetUsrPref(false));
pPref->SetMetric(m_eUnit);