diff --git a/src/main/java/org/jfree/svg/SVGGraphics2D.java b/src/main/java/org/jfree/svg/SVGGraphics2D.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/jfree/svg/SVGGraphics2D.java
+++ b/src/main/java/org/jfree/svg/SVGGraphics2D.java
@@ -740,7 +740,7 @@ public final class SVGGraphics2D extends Graphics2D {
     public GraphicsConfiguration getDeviceConfiguration() {
         if (this.deviceConfiguration == null) {
             this.deviceConfiguration = new SVGGraphicsConfiguration(
-                    (int) this.width, (int) this.height);
+                    (int) Math.ceil(this.width), (int) Math.ceil(this.height));
         }
         return this.deviceConfiguration;
     }
Use Math.ceil() for dimensions of GraphicsConfiguration (#<I>)