writerperfect/source/filter/OdgGenerator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e198eea5a87bff84783bd038cf134e6ea3b764ad
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Thu Jan 12 15:01:13 2012 +0100

    Logical error in writerperfect

diff --git a/writerperfect/source/filter/OdgGenerator.cxx 
b/writerperfect/source/filter/OdgGenerator.cxx
index 584e8cc..fbafb02 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -948,7 +948,7 @@ void OdgGenerator::drawPath(const WPXPropertyListVector 
&path)
 
 void OdgGenerator::drawGraphicObject(const ::WPXPropertyList &propList, const 
::WPXBinaryData &binaryData)
 {
-    if (!propList["libwpg:mime-type"] && 
propList["libwpg:mime-type"]->getStr().len() <= 0)
+    if (!propList["libwpg:mime-type"] || 
propList["libwpg:mime-type"]->getStr().len() <= 0)
         return;
 
     mpImpl->_writeGraphicsStyle();
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to