From 0c44e187481612295744195af55c29639e2c7e22 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 May 2014 14:15:17 +0530 Subject: [PATCH] Fix #1315287 [[1.35] comparing books does not work in this release](https://bugs.launchpad.net/calibre/+bug/1315287) --- src/calibre/gui2/tweak_book/diff/highlight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/diff/highlight.py b/src/calibre/gui2/tweak_book/diff/highlight.py index 7f85229d1d..cf9524788a 100644 --- a/src/calibre/gui2/tweak_book/diff/highlight.py +++ b/src/calibre/gui2/tweak_book/diff/highlight.py @@ -28,9 +28,9 @@ class QtHighlighter(QTextDocument): QTextDocument.__init__(self, parent) self.l = QPlainTextDocumentLayout(self) self.setDocumentLayout(self.l) - self.highlighter = hlclass(self) + self.highlighter = hlclass() self.highlighter.apply_theme(get_theme()) - self.highlighter.setDocument(self) + self.highlighter.set_document(self) self.setPlainText(text) def copy_lines(self, lo, hi, cursor):