mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:39:35 +08:00
Fix some compiler warnings with GRAPHICS_DISABLED
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
6d0595b443
commit
26c21a6db4
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user