Skip to content

Commit 7461b61

Browse files
committed
Fix ABI break introduced in 3.04.00, fixes #254
1 parent 9764338 commit 7461b61

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

api/baseapi.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,10 @@ int CubeAPITest(Boxa* boxa_blocks, Pixa* pixa_blocks,
809809
* has not been subjected to a call of Init, SetImage, Recognize, Clear, End
810810
* DetectOS, or anything else that changes the internal PAGE_RES.
811811
*/
812+
PageIterator* TessBaseAPI::AnalyseLayout() {
813+
return AnalyseLayout(false);
814+
}
815+
812816
PageIterator* TessBaseAPI::AnalyseLayout(bool merge_similar_words) {
813817
if (FindLines() == 0) {
814818
if (block_list_->empty())

api/baseapi.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,7 @@ class TESS_API TessBaseAPI {
497497
* has not been subjected to a call of Init, SetImage, Recognize, Clear, End
498498
* DetectOS, or anything else that changes the internal PAGE_RES.
499499
*/
500-
PageIterator* AnalyseLayout() {
501-
return AnalyseLayout(false);
502-
}
500+
PageIterator* AnalyseLayout();
503501
PageIterator* AnalyseLayout(bool merge_similar_words);
504502

505503
/**

0 commit comments

Comments
 (0)