diff --git a/src/textord/colfind.cpp b/src/textord/colfind.cpp index 44f9e967bc..5d010d8bc3 100644 --- a/src/textord/colfind.cpp +++ b/src/textord/colfind.cpp @@ -37,8 +37,8 @@ #include "scrollview.h" #include "strokewidth.h" #include "tablefind.h" -#include "workingpartset.h" #include "tabletransfer.h" +#include "workingpartset.h" #include diff --git a/src/textord/tablefind.cpp b/src/textord/tablefind.cpp index fe825f1319..46bf4ed572 100644 --- a/src/textord/tablefind.cpp +++ b/src/textord/tablefind.cpp @@ -2003,7 +2003,7 @@ void TableFinder::MakeTableBlocks(ColPartitionGrid *grid, ColPartitionSet **all_ ScrollView::BLUE, ScrollView::LIGHT_BLUE); } #endif // GRAPHICS_DISABLED - + // initializing recognizer in order to extract table row and columnd info TableRecognizer recognizer; { @@ -2013,7 +2013,7 @@ void TableFinder::MakeTableBlocks(ColPartitionGrid *grid, ColPartitionSet **all_ recognizer.set_max_text_height(global_median_xheight_ * 2.0); recognizer.set_min_height(1.5 * gridheight()); } - + // Since we have table blocks already, remove table tags from all // colpartitions GridSearch gsearch(grid); @@ -2068,7 +2068,8 @@ void TableFinder::MakeTableBlocks(ColPartitionGrid *grid, ColPartitionSet **all_ table_partition->set_flow(BTFT_CHAIN); table_partition->SetBlobTypes(); grid->InsertBBox(true, true, table_partition); - + +#if 0 // This code triggers an assertion. // Insert table columns and rows into an api accessible object StructuredTable* table_structure = recognizer.RecognizeTable(table_box); if (table_structure != nullptr) { @@ -2084,9 +2085,10 @@ void TableFinder::MakeTableBlocks(ColPartitionGrid *grid, ColPartitionSet **all_ delete table_structure; } +#endif } } - + #ifndef GRAPHICS_DISABLED if (textord_show_tables) { table_grid_.DisplayBoxes(table_win);