Skip to content

Commit

Permalink
fix for new clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Apr 15, 2024
1 parent 9a6e437 commit a47ccd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/asammdf/gui/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def is_colored(pixmap, color_name, x, y, width=None, height=None):
if _x < x or _y < y:
continue
# De unde 2?
elif (_x > width - x) or (_y > height - y - 2):
elif (_x > width - x) or (_y > height - y - 3):
break
if color.name() != color_name:
print(x, y, width, height)
Expand Down Expand Up @@ -308,7 +308,7 @@ def cursors_x(pixmap):
break
count += 1
else:
if count == image.height() - 2:
if count == image.height() - 3:
cursors.append(x)

return cursors

0 comments on commit a47ccd5

Please sign in to comment.