SrcRect for SrcUnit = 2 is in pixels, don't Map it
This commit is contained in:
parent
e53047ade9
commit
695d82b63d
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue