summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/primitive2d/softedgeprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/softedgeprimitive2d.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
index ecf4e48338d6..27e265ab1ae1 100644
--- a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
@@ -197,6 +197,8 @@ void SoftEdgePrimitive2D::create2DDecomposition(
// Get the Alpha and use as base to blur and apply the effect
AlphaMask aMask(aBitmapEx.GetAlphaMask());
+ if (aMask.IsEmpty()) // There is no mask, fully opaque
+ break;
const AlphaMask blurMask(drawinglayer::primitive2d::ProcessAndBlurAlphaMask(
aMask, -fDiscreteSoftRadius * fScale, fDiscreteSoftRadius * fScale, 0));
aMask.BlendWith(blurMask);