From 695d82b63dc5e332f5fb9574c8e5f089369dfcd8 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 18 Apr 2012 15:36:33 +0200 Subject: [PATCH] SrcRect for SrcUnit = 2 is in pixels, don't Map it --- cppcanvas/source/mtfrenderer/emfplus.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 0d8005cd09fd..b5ce68867ab6 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -1420,8 +1420,8 @@ namespace cppcanvas ReadPoint (rMF, x3, y3, flags); BitmapEx aBmp( image.graphic.GetBitmapEx () ); - const Rectangle aCropRect (::vcl::unotools::pointFromB2DPoint (Map (sx, sy)), - ::vcl::unotools::sizeFromB2DSize (MapSize(sw, sh))); + const Rectangle aCropRect (::vcl::unotools::pointFromB2DPoint (basegfx::B2DPoint (sx, sy)), + ::vcl::unotools::sizeFromB2DSize (basegfx::B2DSize(sw, sh))); aBmp.Crop( aCropRect );