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