incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1241078 - /incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx
Date Mon, 06 Feb 2012 17:00:12 GMT
Author: alg
Date: Mon Feb  6 17:00:12 2012
New Revision: 1241078

URL: http://svn.apache.org/viewvc?rev=1241078&view=rev
Log:
#115962# Better (but not yet optimal, see comments in task) handling of MetaFloatTransparentAction
in PDF export

Modified:
    incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx

Modified: incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx?rev=1241078&r1=1241077&r2=1241078&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx Mon Feb  6 17:00:12 2012
@@ -420,7 +420,12 @@ void PDFWriterImpl::playMetafile( const 
                     else
                     {
                         const Size	aDstSizeTwip( pDummyVDev->PixelToLogic( pDummyVDev->LogicToPixel(
rSize ), MAP_TWIP ) );
-                        sal_Int32	nMaxBmpDPI = i_rContext.m_bOnlyLosslessCompression ? 300
: 72;
+
+                        // #115962# Always use at least 300 DPI for bitmap conversion of
transparence gradients,
+                        // else the quality is not acceptable (see bugdoc as example)
+                        // sal_Int32	nMaxBmpDPI = i_rContext.m_bOnlyLosslessCompression ?
300 : 72;
+                        sal_Int32 nMaxBmpDPI(300);
+
                         if( i_rContext.m_nMaxImageResolution > 50 )
                         {
                             if ( nMaxBmpDPI > i_rContext.m_nMaxImageResolution )



Mime
View raw message