summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-08-26 13:07:19 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2010-08-26 13:07:19 +0200
commit44d336c3ab01c2261297f2a2f773a9fcc30c5545 (patch)
treeed3ae15ce36ddd48b2c57e933f2324771a15fdfb /configmgr
parent7abb5e2be8fe2d89fbd40fa4453ad8a359262134 (diff)
parent2f61a21f70c9dc5efa8d0e0a54e06da282a68efb (diff)
CWS-TOOLING: integrate CWS fwk152
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/xcsparser.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/configmgr/source/xcsparser.cxx b/configmgr/source/xcsparser.cxx
index 79e122759fc8..37b46494c6a7 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: