incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1394447 - /incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx
Date Fri, 05 Oct 2012 11:23:37 GMT
Author: alg
Date: Fri Oct  5 11:23:37 2012
New Revision: 1394447

URL: http://svn.apache.org/viewvc?rev=1394447&view=rev
Log:
#121153# adapted RenderBitmapPrimitive2D_self bitmap transformation to metafile case (where
no destination bitmap size is given)

Modified:
    incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx

Modified: incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx?rev=1394447&r1=1394446&r2=1394447&view=diff
==============================================================================
--- incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx (original)
+++ incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx Fri
Oct  5 11:23:37 2012
@@ -174,7 +174,12 @@ namespace drawinglayer
 			// take a rotation of 45 degrees (sqrt(2)) as maximum expansion into account
 			const Size aSourceSizePixel(rBitmapEx.GetSizePixel());
 			const double fMaximumArea(
-				(double)aOutputRectPixel.getWidth() * 
+                
+                // #121153# With Metafile, aOutputRectPixel may be empty and a virtual
+                // maximum quadratic size has to be used
+                bRecordToMetaFile ? 500000.0 : 
+
+                (double)aOutputRectPixel.getWidth() * 
 				(double)aOutputRectPixel.getHeight() *
 				1.4142136); // 1.4142136 taken as sqrt(2.0)
 



Mime
View raw message