diff --git a/src/calibre/gui2/dialogs/match_books.py b/src/calibre/gui2/dialogs/match_books.py index a64d9368d3..beea89a6b6 100644 --- a/src/calibre/gui2/dialogs/match_books.py +++ b/src/calibre/gui2/dialogs/match_books.py @@ -168,7 +168,7 @@ class MatchBooks(QDialog, Ui_MatchBooks): # have a width. Assume 25. Not a problem because user-changed column # widths will be remembered w = self.books_table.width() - 25 - self.books_table.verticalHeader().width() - w /= self.books_table.columnCount() + w //= self.books_table.columnCount() for c in range(0, self.books_table.columnCount()): self.books_table.setColumnWidth(c, w) self.save_state()