summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-01-12 15:01:13 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-01-12 15:20:32 +0100
commit5d097dfb44ab1d7a41000b8be2ff2ee680de94f9 (patch)
treebf72aedcbda5e586c90e9c725466bd2431be2079 /writerperfect
parent8d5d687354bb470033ed9ab63d8875bc4e34c096 (diff)
Logical error in writerperfect
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 584e8cc8e74a..fbafb02087c0 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();