fixed a bug when removing a picked rectangle with no size
@@ -4448,6 +4448,8 @@ class View(QtGui.QLabel):
X, Y = self.get_pick_rectangle_corners(
start_x, start_y, end_x, end_y, width
)
+ # do not check if rectangle has no size
+ if not Y[0] == Y[1]:
if not lib.check_if_in_rectangle(
x, y, np.array(X), np.array(Y)
)[0]:
