aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-12-30 23:13:23 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-12-30 23:13:23 +0000
commit91eb4861b730610b0860841d5a53f8bdb01eaf30 (patch)
tree9e085c4338fcdec75a344500018bdf345c549a6d /src/java
parentf7c50cfbe3d4e6d0c7cc48fef29e6051d88d5b01 (diff)
downloadpoi-91eb4861b730610b0860841d5a53f8bdb01eaf30.tar.gz
poi-91eb4861b730610b0860841d5a53f8bdb01eaf30.zip
workaround "Width (0) and height (0) cannot be <= 0" error while rendering text with textures
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884966 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/sl/draw/DrawTexturePaint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java b/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java
index ce35b835e0..2d3db49069 100644
--- a/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java
+++ b/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java
@@ -102,7 +102,7 @@ import org.apache.poi.util.Dimension2DDouble;
final Insets2D insets = fill.getInsets();
final Insets2D stretch = fill.getStretch();
- if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null)) {
+ if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null) || userBounds == null || userBounds.isEmpty()) {
return bi;
}