diff options
author | Kurt Zenker <kz@openoffice.org> | 2010-08-11 13:05:19 +0200 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2010-08-11 13:05:19 +0200 |
commit | e0371acd5ee4ace8956474d5b7c724ef4c46a28a (patch) | |
tree | 7e012b0070ecca00a25c315f5ddba93b3611160a /writerfilter/source/ooxml/OOXMLFactory.cxx | |
parent | f4598cc8de4848b30a8bb0a99c8b95156540acf8 (diff) | |
parent | 0ec004ad4c535eb19341ec409d630bebac919458 (diff) |
CWS-TOOLING: integrate CWS writerfilter08ooo330
Notes
Notes:
split repo tag: filters_ooo/OOO330_m4
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFactory.cxx')
-rw-r--r--[-rwxr-xr-x] | writerfilter/source/ooxml/OOXMLFactory.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx index 6fac03898e42..964d9e1cb5ee 100755..100644 --- a/writerfilter/source/ooxml/OOXMLFactory.cxx +++ b/writerfilter/source/ooxml/OOXMLFactory.cxx @@ -263,7 +263,13 @@ OOXMLFactory::createFastChildContext(OOXMLFastContextHandler * pHandler, OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); - return createFastChildContextFromFactory(pHandler, pFactory, Element); + uno::Reference< xml::sax::XFastContextHandler> ret; + + //Avoid handling unknown tokens and recursing to death + if ((Element & 0xffff) < OOXML_FAST_TOKENS_END) + ret = createFastChildContextFromFactory(pHandler, pFactory, Element); + + return ret; } void OOXMLFactory::characters(OOXMLFastContextHandler * pHandler, |