summaryrefslogtreecommitdiffstats
path: root/configmgr/source/xcsparser.cxx
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-09-22 10:27:02 +0200
committersb <sb@openoffice.org>2010-09-22 10:27:02 +0200
commit36fa44d9be3a3c2e1aaa894c20976cd485bc5ae2 (patch)
treef823739b4e0cabb40541c6bb01588a0d5d065673 /configmgr/source/xcsparser.cxx
parentsb129: #i113189# adjusted comments (diff)
parentCWS-TOOLING: integrate CWS vgbugs11 (diff)
downloadcore-36fa44d9be3a3c2e1aaa894c20976cd485bc5ae2.tar.gz
core-36fa44d9be3a3c2e1aaa894c20976cd485bc5ae2.zip
sb129: merged in DEV300_m88
Diffstat (limited to 'configmgr/source/xcsparser.cxx')
-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 1c9cd53d7b9a..1deb8e9f3029 100644
--- a/configmgr/source/xcsparser.cxx
+++ b/configmgr/source/xcsparser.cxx
@@ -322,15 +322,19 @@ void XcsParser::endElement(xmlreader::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: