mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
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:
parent
6fbd9d2643
commit
697c3dc4da
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user