summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLDocumentImpl.cxx')
-rw-r--r--writerfilter/source/ooxml/OOXMLDocumentImpl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
index b905d8968a15..c23aa86b464a 100644
--- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx
@@ -548,7 +548,8 @@ void OOXMLDocumentImpl::incrementProgress()
if (mnProgressEndPos && mnProgressCurrentPos > (mnProgressLastPos + mnPercentSize) && mnProgressLastPos < mnProgressEndPos)
{
mnProgressLastPos = mnProgressCurrentPos;
- mxStatusIndicator->setValue(mnProgressLastPos);
+ if (mxStatusIndicator.is())
+ mxStatusIndicator->setValue(mnProgressLastPos);
}
}