We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d28631a commit 65997beCopy full SHA for 65997be
src/textord/colfind.cpp
@@ -926,7 +926,8 @@ void ColumnFinder::ComputeMeanColumnGap(bool any_multi_column) {
926
&gap_samples);
927
}
928
mean_column_gap_ = any_multi_column && gap_samples > 0
929
- ? total_gap / gap_samples : total_width / width_samples;
+ ? total_gap / gap_samples : width_samples > 0
930
+ ? total_width / width_samples : 0;
931
932
933
//////// Functions that manipulate ColPartitions in the part_grid_ /////
0 commit comments