diff options
author | Finn Bock <bckfnn@apache.org> | 2004-10-20 21:07:02 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-10-20 21:07:02 +0000 |
commit | 4e065f724d4415ebbb90890c3522d3e17472bcbf (patch) | |
tree | 102999d5395cdb11b296e24dacaaf35c407b78cb /src/java/org/apache/fop/fo/pagination/Declarations.java | |
parent | ae93e15a85f851d607e5d7e7f7d5011bac8b3d0a (diff) | |
download | xmlgraphics-fop-4e065f724d4415ebbb90890c3522d3e17472bcbf.tar.gz xmlgraphics-fop-4e065f724d4415ebbb90890c3522d3e17472bcbf.zip |
Fourth phase of performance improvement.
- Misc cleanup.
PR: 31699
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198096 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/Declarations.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/Declarations.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Declarations.java b/src/java/org/apache/fop/fo/pagination/Declarations.java index e859e5053..2556270bb 100644 --- a/src/java/org/apache/fop/fo/pagination/Declarations.java +++ b/src/java/org/apache/fop/fo/pagination/Declarations.java @@ -85,16 +85,16 @@ public class Declarations extends FObj { FONode node = (FONode)iter.next(); if (node.getName().equals("fo:color-profile")) { ColorProfile cp = (ColorProfile)node; - if (!"".equals(cp.getProfileName())) { + if (!"".equals(cp.getColorProfileName())) { if (colorProfiles == null) { colorProfiles = new java.util.HashMap(); } - if (colorProfiles.get(cp.getProfileName()) != null) { + if (colorProfiles.get(cp.getColorProfileName()) != null) { // duplicate names getLogger().warn("Duplicate fo:color-profile profile name : " - + cp.getProfileName()); + + cp.getColorProfileName()); } - colorProfiles.put(cp.getProfileName(), cp); + colorProfiles.put(cp.getColorProfileName(), cp); } else { getLogger().warn("color-profile-name required for color profile"); } |