]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixes potential NullPointerException in AFPGraphics2D.
authorAdrian Cumiskey <acumiskey@apache.org>
Thu, 16 Oct 2008 10:10:12 +0000 (10:10 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Thu, 16 Oct 2008 10:10:12 +0000 (10:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@705196 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/AFPImageGraphics2DFactory.java

index 0433d25b36faff7de7eaf350872bbd42fce7a14f..5128b96cf80ff04ad25cda4a7d0acc9ed8b58713 100644 (file)
@@ -52,6 +52,8 @@ public class AFPImageGraphics2DFactory extends AFPDataObjectInfoFactory {
 
         AFPGraphics2DAdapter g2dAdapter = afpImageInfo.g2dAdapter;
         AFPGraphics2D g2d = g2dAdapter.getGraphics2D();
+        AFPInfo afpInfo = AFPSVGHandler.getAFPInfo(afpImageInfo.rendererContext);
+        g2d.setAFPInfo(afpInfo);
         g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
         g2d.setState(state);
         graphicsObjectInfo.setGraphics2D(g2d);