Fix indentation after conditional [-Wmisleading-indentation]

The indentation is wrong since commit
fd0683f9e0 and results in a gcc warning:

api/baseapi.cpp: In member function 'bool tesseract::TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8*, size_t, const char*, const char*, int, tesseract::TessResultRenderer*, int)':
api/baseapi.cpp:986:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (tessedit_page_number >= 0)
     ^~
api/baseapi.cpp:988:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
       ^~~

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Zdenko Podobný 2017-03-10 11:03:12 +01:00
parent 6fbd9d2643
commit 697c3dc4da

View File

@ -1039,9 +1039,8 @@ bool TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8 *data,
od.pixReadTiffCl(filename, page); od.pixReadTiffCl(filename, page);
} else { } else {
#endif // USE_OPENCL #endif // USE_OPENCL
pix = (data) ? pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
pixReadMemFromMultipageTiff(data, size, &offset) : : pixReadFromMultipageTiff(filename, &offset);
pixReadFromMultipageTiff(filename, &offset);
#ifdef USE_OPENCL #ifdef USE_OPENCL
} }
#endif // USE_OPENCL #endif // USE_OPENCL