diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-06 15:14:43 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-07 05:59:51 +0100 |
commit | e5a3f12588e8e8eb80cc5af4e412fa2c83f0895e (patch) | |
tree | 3796ac80fd6f723aca0081e312b0a05995679856 | |
parent | 9644f506ae31f1cacd6ab4c24b2591179791eebd (diff) |
Check if we have status indicator
In other methods it's always checked, so presumably it might be absent.
In caller sites (like OOXMLFastContextHandler::endOfParagraph), it can't
(and shouldn't) be checked.
Change-Id: Ia2edf8b121cac15e6454bc6321d76517fcdf110f
Reviewed-on: https://gerrit.libreoffice.org/45951
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | writerfilter/source/ooxml/OOXMLDocumentImpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx index 44552eee5e5f..2223b2a6c61c 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx @@ -529,7 +529,8 @@ void OOXMLDocumentImpl::incrementProgress() if (mnProgressEndPos && mnProgressCurrentPos > (mnProgressLastPos + mnPercentSize) && mnProgressLastPos < mnProgressEndPos) { mnProgressLastPos = mnProgressCurrentPos; - mxStatusIndicator->setValue(mnProgressLastPos); + if (mxStatusIndicator.is()) + mxStatusIndicator->setValue(mnProgressLastPos); } } |