summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/helper/graphichelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/helper/graphichelper.cxx b/oox/source/helper/graphichelper.cxx
index 6ada6cd5a5a0..8e56f58ccabb 100644
--- a/oox/source/helper/graphichelper.cxx
+++ b/oox/source/helper/graphichelper.cxx
@@ -355,9 +355,9 @@ Reference< XGraphic > GraphicHelper::importEmbeddedGraphic( const OUString& rStr
EmbeddedGraphicMap::const_iterator aIt = maEmbeddedGraphics.find( rStreamName );
if( aIt == maEmbeddedGraphics.end() )
{
- // Lazy-loading doesn't work with TIFF at the moment.
+ // Lazy-loading doesn't work with TIFF or WMF at the moment.
WmfExternal aHeader;
- if (rStreamName.endsWith(".tiff") && !pExtHeader)
+ if ( (rStreamName.endsWith(".tiff") || rStreamName.endsWith(".wmf") ) && !pExtHeader)
pExtHeader = &aHeader;
xGraphic = importGraphic(mxStorage->openInputStream(rStreamName), pExtHeader);