summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-10-05 10:23:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-11 11:30:59 +0100
commit45d011ba375c469771ef652c25bd42ce85d3071f (patch)
tree62096992aa45db3151f9e324a094a996bdbaa52c /drawinglayer
parent29474304550512f56ef597464bfdb5304bf56bb1 (diff)
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
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclhelperbitmaprender.cxx5
1 files changed, 5 insertions, 0 deletions
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)