summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGökçen Eraslan <gokcen.eraslan@gmail.com>2012-05-25 17:05:57 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-05-28 09:58:48 +0300
commit94713bbeca876c1718305791d45ff8bb986da433 (patch)
tree1ff60f798072698a2acc2e9ff1a10b874fcb76de
parentbb4ae4abb5c01b1fd1e704e19b7913c286642899 (diff)
fdo#46378: Prefer interpolation-based image rescaling in PDF export.
Change-Id: I9ead1221b4562dea0e1ef289944ac11ea850ed1a
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 4ba5e2c8a319..b86e758667bb 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -134,13 +134,13 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
else if( fBmpWH > 0.0 )
{
aNewBmpSize.Width() = FRound( fMaxPixelX );
aNewBmpSize.Height() = FRound( fMaxPixelX / fBmpWH);
}
if( aNewBmpSize.Width() && aNewBmpSize.Height() )
- aBitmapEx.Scale( aNewBmpSize );
+ aBitmapEx.Scale( aNewBmpSize, BMP_SCALE_INTERPOLATE );
else
aBitmapEx.SetEmpty();
}
}
const Size aSizePixel( aBitmapEx.GetSizePixel() );