From: Andreas L. Delmelle Date: Mon, 12 May 2008 19:06:04 +0000 (+0000) Subject: Added missing file from r655500 X-Git-Tag: fop-1_0~624 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48d184be76c8760b3bace47b118087969145b646;p=xmlgraphics-fop.git Added missing file from r655500 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655601 13f79535-47bb-0310-9956-ffa450edef68 --- 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); } /**