mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #1315287 [[1.35] comparing books does not work in this release](https://bugs.launchpad.net/calibre/+bug/1315287)
This commit is contained in:
parent
9d610f0d23
commit
0c44e18748
@ -28,9 +28,9 @@ class QtHighlighter(QTextDocument):
|
|||||||
QTextDocument.__init__(self, parent)
|
QTextDocument.__init__(self, parent)
|
||||||
self.l = QPlainTextDocumentLayout(self)
|
self.l = QPlainTextDocumentLayout(self)
|
||||||
self.setDocumentLayout(self.l)
|
self.setDocumentLayout(self.l)
|
||||||
self.highlighter = hlclass(self)
|
self.highlighter = hlclass()
|
||||||
self.highlighter.apply_theme(get_theme())
|
self.highlighter.apply_theme(get_theme())
|
||||||
self.highlighter.setDocument(self)
|
self.highlighter.set_document(self)
|
||||||
self.setPlainText(text)
|
self.setPlainText(text)
|
||||||
|
|
||||||
def copy_lines(self, lo, hi, cursor):
|
def copy_lines(self, lo, hi, cursor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user