SrcRect for SrcUnit = 2 is in pixels, don't Map it

This commit is contained in:
Radek Doulik 2012-04-18 15:36:33 +02:00
parent e53047ade9
commit 695d82b63d

View file

@ -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 );