mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 17:45:17 +01:00
Bug #1842158: fix regression in commit <b8b5c4e> 25 July 2019 08:52:35.
This commit is contained in:
parent
6fbc6e6e04
commit
8281ab4318
1 changed files with 2 additions and 1 deletions
|
|
@ -731,7 +731,8 @@ def widget_factory(typ, key):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue