diff options
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"); } |