From 8281ab4318884f13d9663b6176502bd0f2bc388b Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sat, 31 Aug 2019 11:54:12 +0100 Subject: [PATCH] Bug #1842158: fix regression in commit 25 July 2019 08:52:35. --- src/calibre/gui2/custom_column_widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 2d60470268..8af25cd673 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -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