From: Adrian Cumiskey Date: Fri, 21 Nov 2008 14:32:24 +0000 (+0000) Subject: Minor cleanup. X-Git-Tag: fop-1_0~376^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0fbec0728cb6edb56858cea593de25d53c4a19d8;p=xmlgraphics-fop.git Minor cleanup. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719589 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/afp/fonts/AFPPageFonts.java b/src/java/org/apache/fop/afp/fonts/AFPPageFonts.java index 146c6f14b..ee7a3c0eb 100644 --- a/src/java/org/apache/fop/afp/fonts/AFPPageFonts.java +++ b/src/java/org/apache/fop/afp/fonts/AFPPageFonts.java @@ -56,7 +56,8 @@ public class AFPPageFonts extends java.util.HashMap { if (afpFontAttributes == null) { afpFontAttributes = new AFPFontAttributes(fontName, font, fontSize); super.put(pageFontKey, afpFontAttributes); - afpFontAttributes.setFontReference(super.size()); + int fontRef = super.size(); + afpFontAttributes.setFontReference(fontRef); } return afpFontAttributes; } diff --git a/src/java/org/apache/fop/afp/modca/GraphicsObject.java b/src/java/org/apache/fop/afp/modca/GraphicsObject.java index 7602f7dd5..24b3f949e 100644 --- a/src/java/org/apache/fop/afp/modca/GraphicsObject.java +++ b/src/java/org/apache/fop/afp/modca/GraphicsObject.java @@ -59,8 +59,8 @@ public class GraphicsObject extends AbstractDataObject { private GraphicsData currentData = null; /** list of objects contained within this container */ - protected List/**/ objects - = new java.util.ArrayList/**/(); + protected List/**/ objects + = new java.util.ArrayList/**/(); /** the graphics state */ private final GraphicsState graphicsState = new GraphicsState();