From 2a028bd0e22b668541d38706dbc5ea21733f73bc Mon Sep 17 00:00:00 2001 From: Neil Bruce Date: Fri, 2 Feb 2018 11:10:14 +0000 Subject: [PATCH] Fixed issue where the aboveCell null check didn't work correctly as the check for col remaining was looking at rows instead. --- src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfPTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfPTable.cs b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfPTable.cs index 4f65892..9878f3d 100644 --- a/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfPTable.cs +++ b/src/iTextSharp.LGPLv2.Core/iTextSharp/text/pdf/PdfPTable.cs @@ -1362,7 +1362,7 @@ internal bool RowSpanAbove(int currRow, int currCol) { int col = currCol - 1; aboveCell = aboveRow.GetCells()[col]; - while ((aboveCell == null) && (row > 0)) + while ((aboveCell == null) && (col > 0)) aboveCell = aboveRow.GetCells()[--col]; return aboveCell != null && aboveCell.Rowspan > distance; }