aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
index 6dbdf2d4f1..817d2edccd 100644
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFBackground.java
@@ -19,7 +19,7 @@ package org.apache.poi.xslf.usermodel;
import java.awt.Color;
import java.awt.Dimension;
-import java.awt.geom.Rectangle2D;
+import java.awt.Rectangle;
import org.apache.poi.sl.draw.DrawPaint;
import org.apache.poi.sl.usermodel.Background;
@@ -43,9 +43,9 @@ public class XSLFBackground extends XSLFSimpleShape
}
@Override
- public Rectangle2D getAnchor(){
+ public Rectangle getAnchor(){
Dimension pg = getSheet().getSlideShow().getPageSize();
- return new Rectangle2D.Double(0, 0, pg.getWidth(), pg.getHeight());
+ return new Rectangle(0, 0, (int)pg.getWidth(), (int)pg.getHeight());
}
@Override