Skip to content

Commit

Permalink
Fix indentation after conditional [-Wmisleading-indentation]
Browse files Browse the repository at this point in the history
The indentation is wrong since commit
fd0683f 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 <[email protected]>
  • Loading branch information
stweil committed Mar 7, 2017
1 parent b851d47 commit cd925fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ bool TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8 *data,
for (; ; ++page) {
if (tessedit_page_number >= 0)
page = tessedit_page_number;
pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
: pixReadFromMultipageTiff(filename, &offset);
pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
: pixReadFromMultipageTiff(filename, &offset);
if (pix == NULL) break;
tprintf("Page %d\n", page + 1);
char page_str[kMaxIntSize];
Expand Down

0 comments on commit cd925fd

Please sign in to comment.