mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix extra qpainter end() call
This commit is contained in:
parent
705c174271
commit
5082280c0e
@ -371,7 +371,6 @@ class ImageView(QWidget, ImageDropMixin):
|
||||
pmap = self._pixmap
|
||||
p = QPainter(self)
|
||||
p.setRenderHints(QPainter.RenderHint.Antialiasing | QPainter.RenderHint.SmoothPixmapTransform)
|
||||
try:
|
||||
if pmap.isNull():
|
||||
if self.draw_empty_border:
|
||||
pen = QPen()
|
||||
@ -399,8 +398,6 @@ class ImageView(QWidget, ImageDropMixin):
|
||||
p.drawRect(target)
|
||||
if self.show_size:
|
||||
draw_size(p, target, ow, oh)
|
||||
finally:
|
||||
p.end()
|
||||
# }}}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user