mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-04 09:49:16 +08:00
Merge pull request #1817 from noahmetzger/winfix
Fix issue detected by Coverity Scan
This commit is contained in:
commit
d22ca6bb06
@ -926,7 +926,8 @@ void ColumnFinder::ComputeMeanColumnGap(bool any_multi_column) {
|
||||
&gap_samples);
|
||||
}
|
||||
mean_column_gap_ = any_multi_column && gap_samples > 0
|
||||
? total_gap / gap_samples : total_width / width_samples;
|
||||
? total_gap / gap_samples : width_samples > 0
|
||||
? total_width / width_samples : 0;
|
||||
}
|
||||
|
||||
//////// Functions that manipulate ColPartitions in the part_grid_ /////
|
||||
|
Loading…
Reference in New Issue
Block a user