Skip to content

Commit 67a1e6c

Browse files
authored
Update glcanon.py
Fix overflow error when clicking on the zoomed out preview or rapidly clicking on individual lines.
1 parent 052a73a commit 67a1e6c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/python/rs274/glcanon.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,8 @@ def select(self, x, y):
592592

593593
try:
594594
buffer = glRenderMode(GL_RENDER)
595-
except OverflowError:
596-
self.select_buffer_size *= 2
597-
continue
595+
except:
596+
buffer = []
598597
break
599598

600599
if buffer:

0 commit comments

Comments
 (0)