Kaydet (Commit) 0eabc890 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid invalid downcasts

Change-Id: I8550da2c6afb4e7de394879ef75312a0c9c2df25
üst 569fbba4
......@@ -1987,7 +1987,7 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext
// filter out a single token. Just hardwire the wrap token here till we
// need a more generic solution.
bool bIsWrap = Element == static_cast<sal_Int32>(NMSP_vmlWord | XML_wrap);
if ( bInNamespaces && ((static_cast<OOXMLFastContextHandlerShape*>(mpParent)->isShapeSent() && bIsWrap) || !bIsWrap) )
if ( bInNamespaces && ((bIsWrap && static_cast<OOXMLFastContextHandlerShape*>(mpParent)->isShapeSent()) || !bIsWrap) )
xResult.set(OOXMLFactory::getInstance()->createFastChildContextFromStart(this, Element));
else if (mxContext.is())
{
......
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