From: Finn Bock Date: Sun, 25 Jan 2004 22:34:49 +0000 (+0000) Subject: Fix missing shorthands. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~890 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c8aec6b579781a0c19f40dcf382a553b8400025;p=xmlgraphics-fop.git Fix missing shorthands. PR: 26423 Submitted by: Simon Pepping git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197260 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index f993d7c1f..1bc932696 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -412,9 +412,9 @@ public class FOPropertyMapping implements Constants { */ public static Property.Maker[] getGenericMappings() { FOPropertyMapping gp = new FOPropertyMapping(); - gp.createGenerics(); // Create the shorthand first, they are referenced by the real properties. gp.createShorthandProperties(); + gp.createGenerics(); gp.createAccessibilityProperties(); gp.createAbsolutePositionProperties(); gp.createAuralProperties(); diff --git a/src/java/org/apache/fop/fo/Property.java b/src/java/org/apache/fop/fo/Property.java index 998068eb8..41a017b75 100644 --- a/src/java/org/apache/fop/fo/Property.java +++ b/src/java/org/apache/fop/fo/Property.java @@ -117,7 +117,7 @@ public class Property { inherited = generic.inherited; defaultValue = generic.defaultValue; percentBase = generic.percentBase; - if (shorthands != null) { + if (generic.shorthands != null) { shorthands = new Property.Maker[generic.shorthands.length]; System.arraycopy(shorthands, 0, generic.shorthands, 0, shorthands.length); }