Further optimize

Signed-off-by: Hollow Man <hollowman186@vip.qq.com>
master
Hollow Man 6 years ago
parent 22eacbd10c
commit cad87ea77b
No known key found for this signature in database
GPG Key ID: 6CA2A0660F48F7A
  1. 1
      app/pdf-viewer/buffer.py

@ -389,6 +389,7 @@ class PdfViewerWidget(QWidget):
if time%2 == 1 and time//2 > 0:
imagebboxlist.extend(newly_added_overlapbboxlist)
if len(imagebboxlist) != len(set(imagebboxlist)):
# remove duplicate to make it run faster
for item in set(imagebboxlist):
if imagebboxlist.count(item) % 2 == 0:

Loading…
Cancel
Save