mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 04:45:27 +01:00
Fix #4848 (Error on opening (viewing) .lrf books in Calibre v. 0.6.39)
This commit is contained in:
parent
2ad4eb09cf
commit
48d0d695e0
1 changed files with 4 additions and 3 deletions
|
|
@ -481,9 +481,10 @@ def paint(self, painter, option, widget):
|
|||
painter.restore()
|
||||
painter.save()
|
||||
painter.setPen(QPen(Qt.NoPen))
|
||||
for c in self.children():
|
||||
painter.setBrush(c.brush)
|
||||
painter.drawRect(c.boundingRect())
|
||||
if hasattr(self, 'children'):
|
||||
for c in self.children():
|
||||
painter.setBrush(c.brush)
|
||||
painter.drawRect(c.boundingRect())
|
||||
painter.restore()
|
||||
painter.save()
|
||||
for tok in self.tokens:
|
||||
|
|
|
|||
Loading…
Reference in a new issue