summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-03-08 13:57:33 +0100
committerRadek Doulik <rodo@novell.com>2012-03-08 14:03:25 +0100
commit47462311eeeac0c9e560e0bb77a3c2c623362b83 (patch)
treed7cb548f474fba5c5bdeffc8529168d5f6ddeb67 /svtools
parentResolves: fdo#40686 dyaLinePitch only valid between [1-31680] (diff)
downloadcore-47462311eeeac0c9e560e0bb77a3c2c623362b83.tar.gz
core-47462311eeeac0c9e560e0bb77a3c2c623362b83.zip
added one more check to be more safe to identify (in)valid metafiles
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/wmf/winwmf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx
index a9c29133d786..e52d08e9de0d 100644
--- a/svtools/source/filter/wmf/winwmf.cxx
+++ b/svtools/source/filter/wmf/winwmf.cxx
@@ -1101,7 +1101,7 @@ sal_Bool WMFReader::ReadHeader()
{
sal_uInt16 aNextWord(0);
*pWMF >> aNextWord;
- if (aNextWord != 0x09)
+ if (nMetaKey == 0x10000 && aNextWord != 0x09)
{
pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR );
return false;