diff --git a/src/ooxml/java/org/apache/poi/xdgf/usermodel/XDGFPage.java b/src/ooxml/java/org/apache/poi/xdgf/usermodel/XDGFPage.java index 388d50a25b..9a41651161 100644 --- a/src/ooxml/java/org/apache/poi/xdgf/usermodel/XDGFPage.java +++ b/src/ooxml/java/org/apache/poi/xdgf/usermodel/XDGFPage.java @@ -99,7 +99,7 @@ public class XDGFPage { if (xoffcell != null) xoffset = Double.parseDouble(xoffcell.getValue()); - if (xoffcell != null) + if (yoffcell != null) yoffset = Double.parseDouble(yoffcell.getValue()); return new Point2D.Double(xoffset, yoffset);