diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-15 13:07:57 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-15 13:07:57 +0000 |
commit | a451826fa5cc43b87ae977c42c362cbf11e1faed (patch) | |
tree | 70771d1d919e117d7fcc92a58e0fd24ac62542a2 /src | |
parent | fe93aa10507b9eed62f6db551e7dbcc7ea023c06 (diff) | |
download | xmlgraphics-fop-a451826fa5cc43b87ae977c42c362cbf11e1faed.tar.gz xmlgraphics-fop-a451826fa5cc43b87ae977c42c362cbf11e1faed.zip |
Added default empty String to the border shorthand. Avoids NPE mentioned in Bugzilla 38648. Still need to add a warning, since property now silently falls back to the default(s).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378003 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/FOPropertyMapping.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index 0e8a21f80..afa83e99c 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -2623,6 +2623,9 @@ public class FOPropertyMapping implements Constants { // background-position m = new ListProperty.Maker(PR_BACKGROUND_POSITION); m.setInherited(false); + m.addKeyword("left", "0% 50%"); + m.addKeyword("center", "50% 50%"); + m.addKeyword("right", "100% 50%"); m.setDefault("0% 0%"); m.setDatatypeParser(new BackgroundPositionShorthandParser()); addPropertyMaker("background-position", m); @@ -2630,6 +2633,7 @@ public class FOPropertyMapping implements Constants { // border m = new ListProperty.Maker(PR_BORDER); m.setInherited(false); + m.setDefault(""); m.setDatatypeParser(new GenericShorthandParser()); addPropertyMaker("border", m); |