]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added missing file from r655500
authorAndreas L. Delmelle <adelmelle@apache.org>
Mon, 12 May 2008 19:06:04 +0000 (19:06 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Mon, 12 May 2008 19:06:04 +0000 (19:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655601 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/PropertyList.java

index b6766bfe9b335b196a40fe639b6b52d1e3d6c4b3..e3e9f9f839ff4a12d2eecb31d2759c0555ba053a 100644 (file)
@@ -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);
     }
     
     /**