summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-07-28 20:41:27 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-07-28 20:45:45 +0400
commitdd6518d42fce1416fa00f80a7b7dead113c37752 (patch)
tree4f3b141a6db1e7d04aa0d7c5dd6d4f48f8032f56
parent5efc15f0006866ac4c422c1b2bde173ded47893f (diff)
fdo#67397: don't bother to create BlendFrame for width == 1 or height == 1
... because: 1) frame painted as a line doesn't make sense to me anyway; 2) it leads to x = 1 or y = 1 in createBlendFrame, while the max value for that variable is "width (or height) - 1", i.e. 0. Change-Id: I7437bce6681e42cb57458c012927cf5d6bfc154f
-rw-r--r--vcl/source/gdi/bitmapex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index e123ac215146..b7dbf7585633 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -1251,7 +1251,7 @@ BitmapEx VCL_DLLPUBLIC createBlendFrame(
const long nW(rSize.Width());
const long nH(rSize.Height());
- if(nW && nH)
+ if(nW > 1 && nH > 1)
{
sal_uInt8 aEraseTrans(0xff);
Bitmap aContent(rSize, 24);