From bf5497ef920c0168abcad517c0e54f7ecd844df3 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 12 Jan 2024 13:48:50 +0300 Subject: [PATCH] Fix calculating number of rows of table --- .../main/java/org/verapdf/gf/model/impl/pd/gfse/GFSETable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/gfse/GFSETable.java b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/gfse/GFSETable.java index ed5df9a72..73c197616 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/gfse/GFSETable.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/gfse/GFSETable.java @@ -99,7 +99,7 @@ private boolean hasScope(GFSETableCell[][] cells, int numberOfRows, int numberOf private boolean checkRegular(List listTR, GFSETableCell[][] cells, int numberOfRows, int numberOfColumns, List rowGroupingsIndexes) { - for (int rowNumber = 0; rowNumber < numberOfRows; rowNumber++) { + for (int rowNumber = 0; rowNumber < listTR.size(); rowNumber++) { int columnNumber = 0; for (PDStructElem elem : listTR.get(rowNumber).getStructuralSignificanceChildren()) { String type = elem.getstandardType();