You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/02/06 18:00:12 UTC

svn commit: r1241078 - /incubator/ooo/trunk/main/vcl/source/gdi/pdfwriter_impl2.cxx

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 )