diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-02-08 17:38:57 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-02-08 17:44:46 +0100 |
commit | 38af1195a9a24af4aaff84e7be318007b82f9b47 (patch) | |
tree | 9b827b88668ac10d6f4f2fba2a7ec1fdb3d8a3de /filter | |
parent | re-enable make help from the top-level make (diff) | |
download | core-38af1195a9a24af4aaff84e7be318007b82f9b47.tar.gz core-38af1195a9a24af4aaff84e7be318007b82f9b47.zip |
do not deserialize into long, use a type of the correct width (fdo#40768)
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 5871da971ef9..2a91c242a2f1 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -6672,7 +6672,10 @@ sal_Bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, rBLIPStream.SeekRel( nSkip + 20 ); // read in size of metafile in EMUS - rBLIPStream >> aMtfSize100.Width() >> aMtfSize100.Height(); + sal_Int32 width, height; + rBLIPStream >> width >> height; + aMtfSize100.Width() = width; + aMtfSize100.Height() = height; // scale to 1/100mm aMtfSize100.Width() /= 360, aMtfSize100.Height() /= 360; |