Fix some compiler warnings with GRAPHICS_DISABLED

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-04-20 07:58:31 +02:00
parent 6d0595b443
commit 26c21a6db4
2 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,8 @@
namespace tesseract {
#ifndef GRAPHICS_DISABLED
// Min and max window sizes.
const int kMinWinSize = 500;
const int kMaxWinSize = 2000;
@ -52,6 +54,8 @@ const int kMaxWinSize = 2000;
const int kXWinFrameSize = 30;
const int kYWinFrameSize = 80;
#endif // !GRAPHICS_DISABLED
// String names corresponding to the NetworkType enum.
// Keep in sync with NetworkType.
// Names used in Serialization to allow re-ordering/addition/deletion of

View File

@ -1839,8 +1839,8 @@ bool TableFinder::GapInXProjection(int *xprojection, int length) {
// (rejected before)
// Overall, this just needs some more work.
void TableFinder::RecognizeTables() {
ScrollView *table_win = nullptr;
#ifndef GRAPHICS_DISABLED
ScrollView *table_win = nullptr;
if (textord_show_tables) {
table_win = MakeWindow(0, 0, "Step 9: Table Structure");
DisplayColPartitions(table_win, &fragmented_text_grid_, ScrollView::BLUE,