diff options
author | Kurt Zenker <kz@openoffice.org> | 2010-08-30 20:20:51 +0200 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2010-08-30 20:20:51 +0200 |
commit | 5f25caeb6d38b624c345c9ea937f88d7ada5522a (patch) | |
tree | dfa986bf4f70e4a905173d7e0bb3527f940c36ae /vcl/source/gdi | |
parent | 9e685a7e47924f184d076c43acde64548cb5925d (diff) |
masterfix: #i114025# WaE fixes
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 818a31a10c0f..d36a18a1afba 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -873,8 +873,8 @@ void GDIMetaFile::Move( long nX, long nY, long nDPIX, long nDPIY ) { aOffset = aMapVDev.LogicToPixel( aBaseOffset, GetPrefMapMode() ); MapMode aMap( aMapVDev.GetMapMode() ); - aOffset.Width() = aOffset.Width() * (double)aMap.GetScaleX(); - aOffset.Height() = aOffset.Height() * (double)aMap.GetScaleY(); + aOffset.Width() = static_cast<long>(aOffset.Width() * (double)aMap.GetScaleX()); + aOffset.Height() = static_cast<long>(aOffset.Height() * (double)aMap.GetScaleY()); } else aOffset = aMapVDev.LogicToLogic( aBaseOffset, GetPrefMapMode(), aMapVDev.GetMapMode() ); |