Skip to content

bug: during labeling, while points or shape over the canvas, program will broken #237

@feyzhen

Description

@feyzhen

when I edit the annotations, click one point or the shape, and move the mouse, while one point reach the edge of one side, will raise TypeError like:
Traceback (most recent call last):
File "D:\MM-Project\anylabeling\anylabeling\views\labeling\widgets\canvas.py", line 336, in mouseMoveEvent
self.bounded_move_vertex(pos)
File "D:\MM-Project\anylabeling\anylabeling\views\labeling\widgets\canvas.py", line 627, in bounded_move_vertex
shape.move_vertex_by(index, pos - point)
~~~~^~~~~~~
TypeError: unsupported operand type(s) for -: 'QPoint' and 'QPointF'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions