]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed a copy-paste error (getPaddingStart instead of getPaddingEnd)
authorVincent Hennebert <vhennebert@apache.org>
Tue, 11 Mar 2008 11:02:27 +0000 (11:02 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 11 Mar 2008 11:02:27 +0000 (11:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@635884 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java
test/layoutengine/standard-testcases/table_backgrounds_2.xml

index b99df4eb35a988eff125ad0fcaac8148654df250..f86554dbd60d3b5cab84e04b9e343ca2ca5788a5 100644 (file)
@@ -545,7 +545,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager
     private Block getBackgroundArea(int bpd, int borderBeforeWidth) {
         CommonBorderPaddingBackground padding = getTableCell().getCommonBorderPaddingBackground();
         int paddingStart = padding.getPaddingStart(false, this);
-        int paddingEnd = padding.getPaddingStart(false, this);
+        int paddingEnd = padding.getPaddingEnd(false, this);
         
         Block block = new Block();
         TraitSetter.setProducerID(block, getTable().getId());
index 11d6d67f9b2f3edfc4afa46215b3ebd673d00162..300d542347f85192b5bde85c9c7b3f9d67b90bef 100644 (file)
             <fo:table-column column-width="proportional-column-width(1)" number-columns-repeated="2"/>
             <fo:table-body>
               <fo:table-row>
-                <fo:table-cell id="bg-cell" padding="2pt 4pt" border="solid 2pt" background-color="lightgray">
+                <fo:table-cell id="bg-cell" padding="2pt 3pt 4pt 5pt" border="solid 2pt" background-color="lightgray">
                   <fo:block>background on cell</fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="2pt 4pt" border="solid 2pt" background-color="lightgray">
+                <fo:table-cell padding="2pt 3pt 4pt 5pt" border="solid 2pt" background-color="lightgray">
                   <fo:block>background on cell</fo:block>
                 </fo:table-cell>
               </fo:table-row>
               <fo:table-row background-color="yellow">
-                <fo:table-cell id="bg-row" padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell id="bg-row" padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on row</fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on row</fo:block>
                 </fo:table-cell>
               </fo:table-row>
             </fo:table-body>
             <fo:table-body background-color="orange">
               <fo:table-row>
-                <fo:table-cell id="bg-body" padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell id="bg-body" padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on body</fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on body</fo:block>
                 </fo:table-cell>
               </fo:table-row>
               background-color="violet"/>
             <fo:table-body>
               <fo:table-row>
-                <fo:table-cell id="bg-col" padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell id="bg-col" padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on column</fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on column</fo:block>
                 </fo:table-cell>
               </fo:table-row>
             <fo:table-column column-width="proportional-column-width(1)" number-columns-repeated="2"/>
             <fo:table-body>
               <fo:table-row>
-                <fo:table-cell id="bg-table" padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell id="bg-table" padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on table</fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="2pt 4pt" border="solid 2pt">
+                <fo:table-cell padding="2pt 3pt 4pt 5pt" border="solid 2pt">
                   <fo:block>background on table</fo:block>
                 </fo:table-cell>
               </fo:table-row>
     </fo:root>
   </fo>
   <checks>
-    <eval expected="18400" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@bpd"/>
+    <eval expected="20400" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@bpd"/>
     <eval expected="178000" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@ipd"/>
-    <eval expected="21400" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@top-offset"/>
+    <eval expected="23400" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@top-offset"/>
     <eval expected="1000" xpath="//block[@prod-id='bg-row']/preceding-sibling::block[1]/@left-offset"/>
     
-    <eval expected="18400" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@bpd"/>
+    <eval expected="20400" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@bpd"/>
     <eval expected="178000" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@ipd"/>
-    <eval expected="41800" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@top-offset"/>
+    <eval expected="45800" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@top-offset"/>
     <eval expected="1000" xpath="//block[@prod-id='bg-body']/preceding-sibling::block[1]/@left-offset"/>
 
-    <eval expected="18400" xpath="//block[@prod-id='bg-col']/preceding-sibling::block[1]/@bpd"/>
+    <eval expected="20400" xpath="//block[@prod-id='bg-col']/preceding-sibling::block[1]/@bpd"/>
     <eval expected="178000" xpath="//block[@prod-id='bg-col']/preceding-sibling::block[1]/@ipd"/>
     <eval expected="1000" xpath="//block[@prod-id='bg-col']/preceding-sibling::block[1]/@top-offset"/>
     <eval expected="1000" xpath="//block[@prod-id='bg-col']/preceding-sibling::block[1]/@left-offset"/>