aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-05-12 19:06:04 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-05-12 19:06:04 +0000
commit48d184be76c8760b3bace47b118087969145b646 (patch)
tree6316a3e9146a1e962de995a53f7ce536a8953e00 /src/java/org/apache/fop/fo
parent53e9608f1b360ac04379385522f95acbb60d91d6 (diff)
downloadxmlgraphics-fop-48d184be76c8760b3bace47b118087969145b646.tar.gz
xmlgraphics-fop-48d184be76c8760b3bace47b118087969145b646.zip
Added missing file from r655500
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r--src/java/org/apache/fop/fo/PropertyList.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java
index b6766bfe9..e3e9f9f83 100644
--- a/src/java/org/apache/fop/fo/PropertyList.java
+++ b/src/java/org/apache/fop/fo/PropertyList.java
@@ -349,13 +349,10 @@ public abstract class PropertyList {
findBasePropertyName(propertyName));
int subpropId = FOPropertyMapping.getSubPropertyId(
findSubPropertyName(propertyName));
-
- if (propId == -1
- || (subpropId == -1
- && findSubPropertyName(propertyName) != null)) {
- return false;
- }
- return true;
+
+ return !(propId == -1
+ || (subpropId == -1
+ && findSubPropertyName(propertyName) != null));
}
/**
@@ -574,7 +571,7 @@ public abstract class PropertyList {
*/
public CommonBorderPaddingBackground getBorderPaddingBackgroundProps()
throws PropertyException {
- return new CommonBorderPaddingBackground(this);
+ return CommonBorderPaddingBackground.getInstance(this);
}
/**