Skip to content

Commit

Permalink
Investigating [BUG] - Stream: Area detection hangs on PDF page BobLd#30
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelor committed Aug 6, 2024
1 parent b29d4f8 commit 89fb0ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public IReadOnlyList<TableRectangle> Detect(PageArea page)

bool foundTable;

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

Check warning on line 231 in Tabula/Detectors/SimpleNurminenDetectionAlgorithm.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'foundTable' is assigned but its value is never used

do
// do
{
foundTable = false;

Expand Down Expand Up @@ -282,7 +282,10 @@ public IReadOnlyList<TableRectangle> Detect(PageArea page)
tableAreas.Add(table);
}
}
} while (foundTable);
// removed following line. It's unclear how this code exit's the loop. When a table is found,
// there is nothing to advance to the next set of criteria, so a table will always be found.
// } while (foundTable);
}

// create a set of our current tables that will eliminate duplicate tables
SortedSet<TableRectangle> tableSet = new SortedSet<TableRectangle>(new TreeSetComparer());
Expand Down

0 comments on commit 89fb0ba

Please sign in to comment.