]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
I said currentGU can no longer be null
authorVincent Hennebert <vhennebert@apache.org>
Wed, 19 Dec 2007 11:47:38 +0000 (11:47 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Wed, 19 Dec 2007 11:47:38 +0000 (11:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@605517 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/RowPainter.java

index 0b90bf9d8afe5eaf86df47b24dec19b9b503863f..6d2568afb12aa5abfa34aeaebb78baff828b501c 100644 (file)
@@ -168,10 +168,7 @@ class RowPainter {
         //Add areas for row
         tclm.addRowBackgroundArea(rowFO, actualRowHeight, layoutContext.getRefIPD(), yoffset);
         for (int i = 0; i < primaryGridUnits.length; i++) {
-            GridUnit currentGU = lastRow.safelyGetGridUnit(i);
-            //currentGU can be null if there's no grid unit
-            //at this place in the current row (empty cell and no borders to process)
-            
+            GridUnit currentGU = lastRow.getGridUnit(i);            
             if (primaryGridUnits[i] != null) {
                 if (forcedFlush || ((end[i] == primaryGridUnits[i].getElements().size() - 1)
                         && currentGU.isLastGridUnitRowSpan())) {