diff options
Diffstat (limited to 'writerperfect/source/filter/OdgGenerator.cxx')
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index f4d68dce7913..4d70f8d41ea5 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -964,7 +964,10 @@ void OdgGenerator::drawGraphicObject(const ::WPXPropertyList &propList, const :: pDrawFrameElement->addAttribute("svg:width", propList["svg:width"]->getStr()); mpImpl->mBodyElements.push_back(pDrawFrameElement); - mpImpl->mBodyElements.push_back(new TagOpenElement("draw:image")); + if (propList["libwpg:mime-type"]->getStr() == "object/ole") + mpImpl->mBodyElements.push_back(new TagOpenElement("draw:object-ole")); + else + mpImpl->mBodyElements.push_back(new TagOpenElement("draw:image")); mpImpl->mBodyElements.push_back(new TagOpenElement("office:binary-data")); @@ -973,7 +976,10 @@ void OdgGenerator::drawGraphicObject(const ::WPXPropertyList &propList, const :: mpImpl->mBodyElements.push_back(new TagCloseElement("office:binary-data")); - mpImpl->mBodyElements.push_back(new TagCloseElement("draw:image")); + if (propList["libwpg:mime-type"]->getStr() == "object/ole") + mpImpl->mBodyElements.push_back(new TagCloseElement("draw:object-ole")); + else + mpImpl->mBodyElements.push_back(new TagCloseElement("draw:image")); mpImpl->mBodyElements.push_back(new TagCloseElement("draw:frame")); } |