aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/poi/sl/draw/DrawTexturePaint.java2
-rw-r--r--test-data/integration/stress021.pptxbin0 -> 596690 bytes
2 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;
}
diff --git a/test-data/integration/stress021.pptx b/test-data/integration/stress021.pptx
new file mode 100644
index 0000000000..e262635014
--- /dev/null
+++ b/test-data/integration/stress021.pptx
Binary files differ