Kaydet (Commit) e5a3f125 authored tarafından Mike Kaganski's avatar Mike Kaganski

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/45951Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 9644f506
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment