summaryrefslogtreecommitdiff
path: root/configmgr/source/xcsparser.cxx
diff options
context:
space:
mode:
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 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:
2019-02-20 16:42:12 +0100'>2019-02-20qt5/kde5: Reuse QFileDialog from Qt5Filepicker in kde5Michael Weghorn 2019-02-05tdf#123058 qt5 fpicker: Honor autoextension settingMichael Weghorn 2019-02-05qt5 fpicker: Fix initial directory selectionMichael Weghorn 2018-12-19Qt5: remove assert leading to crash while executing 'open' dialogAleksei Nikiforov 2018-09-17Qt5 just implement a non-native file pickerJan-Marek Glogowski 2018-07-31Add missing sal/log.hxx headersGabor Kelemen 2018-06-01Various trivial loplugin fixes in --enable-qt5Stephan Bergmann 2018-06-01Make clang-format happy, remove vcl/unx/kde5 from blacklistKatarina Behrens 2018-06-01Templatize Qt5Widget classKatarina Behrens 2018-06-01Qt5 minimal "native" file pickerJan-Marek Glogowski