sw/qa/core/data/ooxml/pass/ofz4825-1.docx |binary writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-)
New commits: commit 752684babf5ebc4ac6dfa4a7ea30f7f7cb4a9e4a Author: Caolán McNamara <[email protected]> Date: Fri Dec 29 14:40:13 2017 +0000 ofz#4825 Bad-cast Change-Id: I57f180c9e28d5f2439efcc1f2726d8fabc108bc9 Reviewed-on: https://gerrit.libreoffice.org/47176 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sw/qa/core/data/ooxml/pass/ofz4825-1.docx b/sw/qa/core/data/ooxml/pass/ofz4825-1.docx new file mode 100644 index 000000000000..ce8e6493af45 Binary files /dev/null and b/sw/qa/core/data/ooxml/pass/ofz4825-1.docx differ diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 9379fa95f3b4..80f4a2e420f3 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -1898,7 +1898,7 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext bool bSkipImages = getDocument()->IsSkipImages() && oox::getNamespace(Element) == static_cast<sal_Int32>(NMSP_dml) && !((oox::getBaseToken(Element) == XML_linkedTxbx) || (oox::getBaseToken(Element) == XML_txbx)); - if ( bInNamespaces && ((!bIsWrap && !bIsSignatureLine) || static_cast<OOXMLFastContextHandlerShape*>(mpParent)->isShapeSent()) ) + if ( bInNamespaces && ((!bIsWrap && !bIsSignatureLine) || dynamic_cast<OOXMLFastContextHandlerShape&>(*mpParent).isShapeSent()) ) xResult.set(OOXMLFactory::createFastChildContextFromStart(this, Element)); else if (mxContext.is() && !bSkipImages) {
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
