Skip to content

Commit d91df98

Browse files
committed
Fixed crash on debugging classifier with a shapetable present
1 parent 4598061 commit d91df98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

classify/tessclassifier.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ int TessClassifier::DisplayClassifyAs(
6969
const TrainingSample& sample, Pix* page_pix, int unichar_id, int index,
7070
PointerVector<ScrollView>* windows) {
7171
int shape_id = unichar_id;
72-
if (GetShapeTable() != NULL)
73-
shape_id = BestShapeForUnichar(sample, page_pix, unichar_id, NULL);
72+
// TODO(rays) Fix this so it works with both flat and real shapetables.
73+
// if (GetShapeTable() != NULL)
74+
// shape_id = BestShapeForUnichar(sample, page_pix, unichar_id, NULL);
7475
if (shape_id < 0) return index;
7576
if (UnusedClassIdIn(classify_->PreTrainedTemplates, shape_id)) {
7677
tprintf("No built-in templates for class/shape %d\n", shape_id);

0 commit comments

Comments
 (0)