From 0fbec0728cb6edb56858cea593de25d53c4a19d8 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Fri, 21 Nov 2008 14:32:24 +0000 Subject: [PATCH] Minor cleanup. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719589 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/afp/fonts/AFPPageFonts.java | 3 ++- src/java/org/apache/fop/afp/modca/GraphicsObject.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.39.5