mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Bug #1842158: fix regression in commit <b8b5c4e> 25 July 2019 08:52:35.
This commit is contained in:
parent
6fbc6e6e04
commit
8281ab4318
@ -731,7 +731,8 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
|
|||||||
count = len(cols)
|
count = len(cols)
|
||||||
layout_rows_for_comments = 9
|
layout_rows_for_comments = 9
|
||||||
if two_column:
|
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:
|
else:
|
||||||
# Avoid problems with multi-line widgets
|
# Avoid problems with multi-line widgets
|
||||||
turnover_point = count + 1000
|
turnover_point = count + 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user