summaryrefslogtreecommitdiff
path: root/sw/source/core/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/core/uibase/uno/unotxdoc.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/uibase/uno/unotxdoc.cxx b/sw/source/core/uibase/uno/unotxdoc.cxx
index 945bc0a7b31e..6c7fb3b85225 100644
--- a/sw/source/core/uibase/uno/unotxdoc.cxx
+++ b/sw/source/core/uibase/uno/unotxdoc.cxx
@@ -1468,7 +1468,8 @@ void SwXTextDocument::InitNewDoc()
}
OSL_ENSURE(pNumFmt, "No number formatter available");
- pNumFmt->SetNumberFormatter(0);
+ if (pNumFmt)
+ pNumFmt->SetNumberFormatter(0);
}
if(pxXTextFieldTypes)