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/10/05 13:23:37 UTC

svn commit: r1394447 - /incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx

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)