aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/sl
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/sl')
-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;
}