diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-01-26 08:57:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-26 11:27:33 +0100 |
commit | a169b1d67447183b83fd5e8f165c99493c114125 (patch) | |
tree | 81f2a721769a5a05896b61cd0feb4d29654b2f04 /writerperfect | |
parent | 12f9d1032b02b7e2b87c2f35fa84554df8101eca (diff) |
Fix crashes due to inexisting attribute
(cherry picked from commit 79299dcae534943f6107afc99542ddf028d20117)
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/OdtGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/filter/OdtGenerator.cxx b/writerperfect/source/filter/OdtGenerator.cxx index 94e46c98447f..ecb29bb3079e 100644 --- a/writerperfect/source/filter/OdtGenerator.cxx +++ b/writerperfect/source/filter/OdtGenerator.cxx @@ -1264,7 +1264,7 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX else // assuming we have a binary image or a object_ole that we can just insert as it is { - if (propList["libwpg:mime-type"]->getStr() == "object/ole") + if (propList["libwpd:mimetype"]->getStr() == "object/ole") mpImpl->mpCurrentContentElements->push_back(new TagOpenElement("draw:object-ole")); else mpImpl->mpCurrentContentElements->push_back(new TagOpenElement("draw:image")); @@ -1277,7 +1277,7 @@ void OdtGenerator::insertBinaryObject(const WPXPropertyList &propList, const WPX mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("office:binary-data")); - if (propList["libwpg:mime-type"]->getStr() == "object/ole") + if (propList["libwpd:mimetype"]->getStr() == "object/ole") mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("draw:object-ole")); else mpImpl->mpCurrentContentElements->push_back(new TagCloseElement("draw:image")); |