aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-11-21 14:32:24 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-11-21 14:32:24 +0000
commit0fbec0728cb6edb56858cea593de25d53c4a19d8 (patch)
tree9ff5177df5e74303c5a449ff43fe7f99a5e36600
parent6a1c75ff782f5cd334d96456eb2db7981dfffaf2 (diff)
downloadxmlgraphics-fop-0fbec0728cb6edb56858cea593de25d53c4a19d8.tar.gz
xmlgraphics-fop-0fbec0728cb6edb56858cea593de25d53c4a19d8.zip
Minor cleanup.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719589 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/afp/fonts/AFPPageFonts.java3
-rw-r--r--src/java/org/apache/fop/afp/modca/GraphicsObject.java4
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/*<GraphicsDrawingOrder>*/ objects
- = new java.util.ArrayList/*<GraphicsDrawingOrder>*/();
+ protected List/*<GraphicsData>*/ objects
+ = new java.util.ArrayList/*<GraphicsData>*/();
/** the graphics state */
private final GraphicsState graphicsState = new GraphicsState();