Merge pull request #1304 from opencv/bs/delete_points_fix

Fixed deleting of the latest point
main
Dmitry Kalinin 6 years ago committed by GitHub
commit 56c6f11569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -923,7 +923,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
this.activate(activeElement);
}
if (state.points
if (state.points.length !== drawnState.points.length || state.points
.some((p: number, id: number): boolean => p !== drawnState.points[id])
) {
const translatedPoints: number[] = translate(state.points);

Loading…
Cancel
Save