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:
zdenop@gmail.com 2013-05-02 19:45:29 +00:00
parent 62b2e12b72
commit 642e9e7615

View File

@ -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);