diff options
author | Henning Brinkmann <hbrinkm@openoffice.org> | 2010-06-04 14:07:03 +0200 |
---|---|---|
committer | Henning Brinkmann <hbrinkm@openoffice.org> | 2010-06-04 14:07:03 +0200 |
commit | b4b0d9e9f9b6ff5a3626afddccdf2d9f36ce39e5 (patch) | |
tree | 303fb681e6a69c5fea0142c3ddca45430a30daf8 /writerfilter/source/ooxml/OOXMLFactory.cxx | |
parent | 8b8f0fdcd980e1f19274c38f42aef27c1c380d7d (diff) |
writerfilter08: #i112027#: applied patch and verified
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFactory.cxx')
-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 --- 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, |