diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-11-13 17:41:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-11-13 18:43:57 +0100 |
commit | 4038d6c393c3cf6330671124ba69cdba98b24960 (patch) | |
tree | 79dbbc062df6fb3acd544e223b6b7cd036f1da54 /oox/source/shape/WpgContext.cxx | |
parent | ae499df25c01a149dfbb387da17a7f8a232a6a4e (diff) |
tdf#117658 PPTX import: fix duplicated math object handling
We used to recurse into both arms of <mc:AlternateContent>: while the
intention is that an importer either reads <mc:Choice> or <mc:Fallback>.
Fix this by converting PPTShapeGroupContext to be a FragmentHandler2,
this way FragmentHandler2::prepareMceContext() is invoked, which knows
how to do this correctly.
This requires declaring "a14" as a supported namespace, e.g.
SdOOXMLExportTest2::testMathObject() would fail without it. This also
requires keeping "a14" unsupported in the Calc case, e.g.
ScFiltersTest::testControlImport() would fail without it. Finally the
"Convert this to FragmentHandler2" TODO in
SlideFragmentHandler::onCreateContext() from 2011 can be removed with
this.
Change-Id: I883237902c71cb515e810a8e34443c9eeaca48b0
Reviewed-on: https://gerrit.libreoffice.org/82623
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'oox/source/shape/WpgContext.cxx')
-rw-r--r-- | oox/source/shape/WpgContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/shape/WpgContext.cxx b/oox/source/shape/WpgContext.cxx index 88521e981ee6..36fb5cb976c0 100644 --- a/oox/source/shape/WpgContext.cxx +++ b/oox/source/shape/WpgContext.cxx @@ -23,8 +23,8 @@ namespace oox namespace shape { -WpgContext::WpgContext(ContextHandler2Helper const& rParent) - : ContextHandler2(rParent) +WpgContext::WpgContext(FragmentHandler2 const& rParent) + : FragmentHandler2(rParent) { mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); mpShape->setWps(true); |