Skip to content

Commit c34dea6

Browse files
committed
Missing from 25d0968
1 parent 03f3c9d commit c34dea6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

wordrec/associate.cpp

+6-7
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,25 @@ void AssociateUtils::ComputeStats(int col, int row,
9898
if (col > 0) {
9999
float left_gap = word_res->GetBlobsGap(col - 1) / normalizing_height;
100100
SEAM *left_seam = word_res->seam_array[col - 1];
101-
if ((!end_row && left_gap < kMinGap) || left_seam->priority > 0.0f) {
101+
if ((!end_row && left_gap < kMinGap) || left_seam->priority() > 0.0f) {
102102
stats->bad_shape = true;
103103
}
104104
if (debug) {
105-
tprintf("left_gap %g, left_seam %g %s\n", left_gap, left_seam->priority,
106-
stats->bad_shape ? "bad_shape" : "");
105+
tprintf("left_gap %g, left_seam %g %s\n", left_gap,
106+
left_seam->priority(), stats->bad_shape ? "bad_shape" : "");
107107
}
108108
}
109109
float right_gap = 0.0f;
110110
if (!end_row) {
111111
right_gap = word_res->GetBlobsGap(row) / normalizing_height;
112112
SEAM *right_seam = word_res->seam_array[row];
113-
if (right_gap < kMinGap || right_seam->priority > 0.0f) {
113+
if (right_gap < kMinGap || right_seam->priority() > 0.0f) {
114114
stats->bad_shape = true;
115115
if (right_gap < kMinGap) stats->bad_fixed_pitch_right_gap = true;
116116
}
117117
if (debug) {
118-
tprintf("right_gap %g right_seam %g %s\n",
119-
right_gap, right_seam->priority,
120-
stats->bad_shape ? "bad_shape" : "");
118+
tprintf("right_gap %g right_seam %g %s\n", right_gap,
119+
right_seam->priority(), stats->bad_shape ? "bad_shape" : "");
121120
}
122121
}
123122

0 commit comments

Comments
 (0)