summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-02-08 17:38:57 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-02-08 17:44:46 +0100
commit38af1195a9a24af4aaff84e7be318007b82f9b47 (patch)
tree9b827b88668ac10d6f4f2fba2a7ec1fdb3d8a3de /filter
parentd85a108a1b37b9dbaf151d4141e21674ab53f569 (diff)
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.cxx5
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;