mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
fix segfault for PSM_SINGLE_CHAR (issue 845)
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@842 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
62b2e12b72
commit
642e9e7615
@ -60,6 +60,8 @@ void restore_underlined_blobs( //get chop points
|
||||
u_line = under_it.extract ();
|
||||
blob_box = u_line->bounding_box ();
|
||||
row = most_overlapping_row (block->get_rows (), u_line);
|
||||
if (row == NULL)
|
||||
return; // Don't crash if there is no row.
|
||||
find_underlined_blobs (u_line, &row->baseline, row->xheight,
|
||||
row->xheight * textord_underline_offset,
|
||||
&chop_cells);
|
||||
|
Loading…
Reference in New Issue
Block a user