summaryrefslogtreecommitdiff
authorGökçen Eraslan <gokcen.eraslan@gmail.com>2012-05-25 14:05:57 (GMT)
committer Tor Lillqvist <tlillqvist@suse.com>2012-05-28 06:58:48 (GMT)
commit94713bbeca876c1718305791d45ff8bb986da433 (patch) (side-by-side diff)
tree1ff60f798072698a2acc2e9ff1a10b874fcb76de
parentbb4ae4abb5c01b1fd1e704e19b7913c286642899 (diff)
downloadcore-94713bbeca876c1718305791d45ff8bb986da433.zip
core-94713bbeca876c1718305791d45ff8bb986da433.tar.gz
fdo#46378: Prefer interpolation-based image rescaling in PDF export.
Change-Id: I9ead1221b4562dea0e1ef289944ac11ea850ed1a
Diffstat (more/less context) (ignore whitespace changes)
-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 4ba5e2c..b86e758 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -137,7 +137,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
aNewBmpSize.Height() = FRound( fMaxPixelX / fBmpWH);
}
if( aNewBmpSize.Width() && aNewBmpSize.Height() )
- aBitmapEx.Scale( aNewBmpSize );
+ aBitmapEx.Scale( aNewBmpSize, BMP_SCALE_INTERPOLATE );
else
aBitmapEx.SetEmpty();
}