Fix grouped layout algorithm to match other apps.

This commit is contained in:
John Preston 2017-12-25 14:12:47 +03:00
parent 57351dd42a
commit a6c15217c0
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ Layouter::Layouter(
, _maxHeight(maxWidth)
, _minWidth(minWidth)
, _spacing(spacing)
, _averageRatio(ranges::accumulate(_ratios, 0.) / _count)
, _averageRatio(ranges::accumulate(_ratios, 1.) / _count)
, _maxSizeRatio(_maxWidth / float64(_maxHeight)) {
}