summaryrefslogtreecommitdiff
path: root/vcl/source/graphic
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2018-04-03 01:05:33 +1000
committerTomaž Vajngerl <quikee@gmail.com>2018-04-03 04:46:19 +0200
commit8e0eb015e74775b9bf02326ffd7b67e83ad6c60d (patch)
tree3efb6da3014389a326bedd5c6504be05a077fc5f /vcl/source/graphic
parent55d5d9d365ea18e66cef045756f772e2fa9d0648 (diff)
vcl: use BitmapEx::Scale() where needed and SetSizePixel() elsewhere
Change-Id: If4b2f3c209d1aefbe5756645d448c992387bae16 Reviewed-on: https://gerrit.libreoffice.org/52268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/graphic')
-rw-r--r--vcl/source/graphic/GraphicObject2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/graphic/GraphicObject2.cxx b/vcl/source/graphic/GraphicObject2.cxx
index 7e951479912a..e46b035f60b7 100644
--- a/vcl/source/graphic/GraphicObject2.cxx
+++ b/vcl/source/graphic/GraphicObject2.cxx
@@ -2036,7 +2036,7 @@ void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
rBmpEx = aBmpEx2;
}
- aBmpEx2.SetSizePixel( Size(nPadTotalWidth, nPadTotalHeight) );
+ aBmpEx2.Scale(Size(nPadTotalWidth, nPadTotalHeight));
aBmpEx2.Erase( Color(0xFF,0,0,0) );
aBmpEx2.CopyPixel( tools::Rectangle( Point(nPadLeft, nPadTop), aBmpSize ), tools::Rectangle( Point(0, 0), aBmpSize ), &rBmpEx );
rBmpEx = aBmpEx2;