diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-08-26 13:07:19 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-08-26 13:07:19 +0200 |
commit | 864045890b84b8307b673b39bad1540d102a6414 (patch) | |
tree | ad2b58e80a49ee9c5426cfd974a0a3b75c551288 /configmgr | |
parent | 505336af510bead37a4777f230c2d004a3e9b176 (diff) | |
parent | dffbec9fe51bd0d6bfc885c1061f5d62312e78a1 (diff) |
CWS-TOOLING: integrate CWS fwk152
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/xcsparser.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configmgr/source/xcsparser.cxx b/configmgr/source/xcsparser.cxx index 79e122759f..37b46494c6 100644 --- a/configmgr/source/xcsparser.cxx +++ b/configmgr/source/xcsparser.cxx @@ -321,15 +321,19 @@ void XcsParser::endElement(XmlReader const & reader) { } else { switch (state_) { case STATE_COMPONENT_SCHEMA: + // To support old, broken extensions with .xcs files that contain + // empty <component-schema> elements: + state_ = STATE_COMPONENT_DONE; + break; + case STATE_TEMPLATES: + state_ = STATE_TEMPLATES_DONE; + break; case STATE_TEMPLATES_DONE: throw css::uno::RuntimeException( (rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("no component element in ")) + reader.getUrl()), css::uno::Reference< css::uno::XInterface >()); - case STATE_TEMPLATES: - state_ = STATE_TEMPLATES_DONE; - break; case STATE_COMPONENT_DONE: break; default: |