Skip to content

Commit

Permalink
Add check to avoid double entries in case POI bug ever gets solved
Browse files Browse the repository at this point in the history
  • Loading branch information
blagae committed Jul 29, 2015
1 parent 18477d6 commit 0d67b0d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,11 @@ else if ( o instanceof CTSdtCell )
XWPFTableCell cell = new XWPFTableCell( ctTc, row, row.getTable().getBody() );
cellIndex = getCellIndex( cellIndex, cell );
lastCol = ( cellIndex == nbColumns );
row.getTableCells().add(cell);
List<XWPFTableCell> rowCells = row.getTableCells();
if (!rowCells.contains(cell))
{
rowCells.add(cell);
}
vMergedCells = getVMergedCells( cell, rowIndex, cellIndex );
if ( vMergedCells == null || vMergedCells.size() > 0 )
{
Expand Down

0 comments on commit 0d67b0d

Please sign in to comment.