]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed copy constructor
authorAdrian Cumiskey <acumiskey@apache.org>
Fri, 14 Dec 2007 13:16:06 +0000 (13:16 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Fri, 14 Dec 2007 13:16:06 +0000 (13:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@604185 13f79535-47bb-0310-9956-ffa450edef68

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

index bdd33f3de487f92d36482f13a0f0597db08fbcf1..a64b77d35d2094875c20e8c2d723f19c3812ab58 100644 (file)
@@ -89,13 +89,18 @@ public class AFPGraphics2D extends AbstractGraphics2D {
     }
 
     /**
-     * Creates a new AbstractGraphics2D from an existing instance.
+     * Creates a new AFPGraphics2D from an existing instance.
      * 
      * @param g
-     *            the AbstractGraphics2D whose properties should be copied
+     *            the AFPGraphics2D whose properties should be copied
      */
     public AFPGraphics2D(AFPGraphics2D g) {
         super(g);
+        this.graphicsObj = g.graphicsObj;
+        this.fallbackTextHandler = g.fallbackTextHandler;
+        this.customTextHandler = g.customTextHandler;
+        this.afpInfo = g.afpInfo;
+        this.afpState = g.afpState;
     }
 
     /**