diff options
author | Mehdi Houshmand <mehdi@apache.org> | 2012-07-18 09:12:10 +0000 |
---|---|---|
committer | Mehdi Houshmand <mehdi@apache.org> | 2012-07-18 09:12:10 +0000 |
commit | adbd5aac98fc107156ee108092ab25cf502c1491 (patch) | |
tree | 6fc36cb037b54976daa737fca41aa00c5f3b962c /src/java/org/apache/fop/render/pcl | |
parent | dc5a2cc9e76476acfc77a316fd9ffb43d4ee8b59 (diff) | |
download | xmlgraphics-fop-adbd5aac98fc107156ee108092ab25cf502c1491.tar.gz xmlgraphics-fop-adbd5aac98fc107156ee108092ab25cf502c1491.zip |
Bugzilla#53563: Removed a method call that could cause a java.awt.HeadlessException in PCLGraphics2D (brought it inline with PDF/PS/AFP-Graphics2D classes)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1362823 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pcl')
-rw-r--r-- | src/java/org/apache/fop/render/pcl/PCLGraphics2D.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java b/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java index 3fc988110..0fbf86c2c 100644 --- a/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java +++ b/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java @@ -25,7 +25,6 @@ import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GraphicsConfiguration; -import java.awt.GraphicsEnvironment; import java.awt.Image; import java.awt.Paint; import java.awt.Shape; @@ -44,6 +43,7 @@ import java.text.AttributedCharacterIterator; import org.apache.xmlgraphics.java2d.AbstractGraphics2D; import org.apache.xmlgraphics.java2d.GraphicContext; +import org.apache.xmlgraphics.java2d.GraphicsConfigurationWithTransparency; import org.apache.xmlgraphics.util.UnitConv; /** @@ -127,8 +127,7 @@ public class PCLGraphics2D extends AbstractGraphics2D { /** {@inheritDoc} */ public GraphicsConfiguration getDeviceConfiguration() { - return GraphicsEnvironment.getLocalGraphicsEnvironment() - .getDefaultScreenDevice().getDefaultConfiguration(); + return new GraphicsConfigurationWithTransparency(); } /** |