]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed superfluous brackets
authorVincent Hennebert <vhennebert@apache.org>
Fri, 17 Oct 2008 09:36:40 +0000 (09:36 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Fri, 17 Oct 2008 09:36:40 +0000 (09:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@705529 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/TraitSetter.java

index f34c68a6cfa190d12316809466a69d4f62298be8..154d32e96cb278381f0d25f23cad229c06d7b23a 100644 (file)
@@ -394,7 +394,7 @@ public class TraitSetter {
                         width += backProps.getPaddingStart(false, context);
                         width += backProps.getPaddingEnd(false, context);
                         int imageWidthMpt = back.getImageInfo().getSize().getWidthMpt();
-                        int lengthBaseValue = (width - imageWidthMpt);
+                        int lengthBaseValue = width - imageWidthMpt;
                         SimplePercentBaseContext simplePercentBaseContext
                             = new SimplePercentBaseContext(context,
                             LengthBase.IMAGE_BACKGROUND_POSITION_HORIZONTAL,
@@ -418,7 +418,7 @@ public class TraitSetter {
                         height += backProps.getPaddingBefore(false, context);
                         height += backProps.getPaddingAfter(false, context);
                         int imageHeightMpt = back.getImageInfo().getSize().getHeightMpt();
-                        int lengthBaseValue = (height - imageHeightMpt);
+                        int lengthBaseValue = height - imageHeightMpt;
                         SimplePercentBaseContext simplePercentBaseContext
                             = new SimplePercentBaseContext(context,
                                 LengthBase.IMAGE_BACKGROUND_POSITION_VERTICAL,