mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix incorrect paints when paint events generated by mouse clicks
This commit is contained in:
parent
520be76781
commit
d38bc2998d
@ -225,7 +225,7 @@ class TextBrowser(PlainTextEdit): # {{{
|
||||
num += 1
|
||||
|
||||
def paintEvent(self, event):
|
||||
w = event.rect().width()
|
||||
w = self.viewport().rect().width()
|
||||
painter = QPainter(self.viewport())
|
||||
painter.setClipRect(event.rect())
|
||||
floor = event.rect().bottom()
|
||||
|
Loading…
x
Reference in New Issue
Block a user