diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2016-12-01 07:38:32 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-12-01 17:37:43 +0000 |
commit | 0afbe8d5ca17c4e24bb49272dc6711925f82f5d5 (patch) | |
tree | 3bb06976eb2967a0fcb685ee7e8070a23d347c5a /sc/source/filter/oox/extlstcontext.cxx | |
parent | 83b7e1f424a3fb0963b064e77d973e5f655fac1a (diff) |
tdf#104310: Accept also x14-style dataValidations
See https://msdn.microsoft.com/en-us/library/dd921584
Change-Id: I66c9474cbf83cea10ab0e7c2b44592673c8b683f
Reviewed-on: https://gerrit.libreoffice.org/31456
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/filter/oox/extlstcontext.cxx')
-rw-r--r-- | sc/source/filter/oox/extlstcontext.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx index 023c27df29a9..54f332aa740a 100644 --- a/sc/source/filter/oox/extlstcontext.cxx +++ b/sc/source/filter/oox/extlstcontext.cxx @@ -229,9 +229,11 @@ ExtGlobalContext::ExtGlobalContext( WorksheetContextBase& rFragment ): ContextHandlerRef ExtGlobalContext::onCreateContext( sal_Int32 nElement, const AttributeList& /*rAttribs*/ ) { - if (nElement == XLS14_TOKEN(conditionalFormatting)) - return new ExtConditionalFormattingContext(*this); - + switch (nElement) + { + case XLS14_TOKEN(conditionalFormatting): return new ExtConditionalFormattingContext(*this); + case XLS14_TOKEN(dataValidations): return new ExtDataValidationsContext(*this); + } return this; } |