From 45d011ba375c469771ef652c25bd42ce85d3071f Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Fri, 5 Oct 2012 10:23:37 +0000 Subject: Resolves: #i121153# adapted RenderBitmapPrimitive2D_self... bitmap transformation to metafile case where no destination bitmap size is given (cherry picked from commit 1f0b83f0e62094257a1c69ff18969f07422772dc) Change-Id: I12ece7aa36df6a9895303af59693de3b9813bb17 --- drawinglayer/source/processor2d/vclhelperbitmaprender.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drawinglayer') diff --git a/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx b/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx index 37ee61df9be3..3cd0bfb7caa8 100644 --- a/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx +++ b/drawinglayer/source/processor2d/vclhelperbitmaprender.cxx @@ -167,6 +167,11 @@ namespace drawinglayer // take a rotation of 45 degrees (sqrt(2)) as maximum expansion into account const Size aSourceSizePixel(rBitmapEx.GetSizePixel()); const double fMaximumArea( + + // #i121153# 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) -- cgit