Skip to content

Commit

Permalink
Update PdfPTable.java
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenStreasick authored and asturio committed Nov 25, 2024
1 parent fc0fb74 commit 64bca8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openpdf/src/main/java/com/lowagie/text/pdf/PdfPTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ public PdfPCell addCell(String text) {
* @param table the table to be added to the cell
*/
public PdfPCell addCell(PdfPTable table) {
if(table == this) {
throw new DocumentException("unable.to.add.self.to.table.contents");
}
defaultCell.setTable(table);
addCell(defaultCell);
defaultCell.setTable(null);
Expand Down

0 comments on commit 64bca8f

Please sign in to comment.