Skip to content

Commit

Permalink
Merge pull request #259 from innir/abi-break-fix
Browse files Browse the repository at this point in the history
Fix ABI break introduced in 3.04.00, fixes #254
  • Loading branch information
zdenop committed Mar 8, 2016
2 parents 9764338 + 7461b61 commit b1c1382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,10 @@ int CubeAPITest(Boxa* boxa_blocks, Pixa* pixa_blocks,
* has not been subjected to a call of Init, SetImage, Recognize, Clear, End
* DetectOS, or anything else that changes the internal PAGE_RES.
*/
PageIterator* TessBaseAPI::AnalyseLayout() {
return AnalyseLayout(false);
}

PageIterator* TessBaseAPI::AnalyseLayout(bool merge_similar_words) {
if (FindLines() == 0) {
if (block_list_->empty())
Expand Down
4 changes: 1 addition & 3 deletions api/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,7 @@ class TESS_API TessBaseAPI {
* has not been subjected to a call of Init, SetImage, Recognize, Clear, End
* DetectOS, or anything else that changes the internal PAGE_RES.
*/
PageIterator* AnalyseLayout() {
return AnalyseLayout(false);
}
PageIterator* AnalyseLayout();
PageIterator* AnalyseLayout(bool merge_similar_words);

/**
Expand Down

0 comments on commit b1c1382

Please sign in to comment.