summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java
index 89f312327b..64ff9a9766 100644
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java
@@ -151,7 +151,7 @@ public abstract class XSLFSimpleShape extends XSLFShape
public Rectangle2D getAnchor() {
CTTransform2D xfrm = getXfrm(false);
- if (xfrm == null) {
+ if (xfrm == null || !xfrm.isSetOff()) {
return null;
}