Bug #1842158: fix regression in commit <b8b5c4e> 25 July 2019 08:52:35.

This commit is contained in:
Charles Haley 2019-08-31 11:54:12 +01:00
parent 6fbc6e6e04
commit 8281ab4318

View File

@ -731,7 +731,8 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
count = len(cols)
layout_rows_for_comments = 9
if two_column:
turnover_point = ((count-comments_not_in_tweak+1) + int(comments_in_tweak*(layout_rows_for_comments-1))/2)
turnover_point = int(((count - comments_not_in_tweak + 1) +
int(comments_in_tweak*(layout_rows_for_comments-1)))/2)
else:
# Avoid problems with multi-line widgets
turnover_point = count + 1000