writerperfect/source/filter/OdtGenerator.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c82d91e040b7716141cd87d1c774e01ca2e1593e
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Thu Jan 26 08:57:13 2012 +0100

    Fix crashes due to inexisting attribute

diff --git a/writerperfect/source/filter/OdtGenerator.cxx 
b/writerperfect/source/filter/OdtGenerator.cxx
index 94e46c9..ecb29bb 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"));
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to