Skip to content

Commit 78444a1

Browse files
committed
fix VectorShape on_dirty callback registration being set for the wrong type
1 parent 040beb0 commit 78444a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/vectorio/VectorShape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ STATIC mp_obj_t vectorio_vector_shape_make_new(const mp_obj_type_t *type, size_t
8585
if (MP_OBJ_IS_TYPE(shape, &vectorio_polygon_type)) {
8686
common_hal_vectorio_polygon_set_on_dirty(self->ishape.shape, on_dirty);
8787
} else if (MP_OBJ_IS_TYPE(shape, &vectorio_rectangle_type)) {
88-
common_hal_vectorio_circle_set_on_dirty(self->ishape.shape, on_dirty);
8988
} else if (MP_OBJ_IS_TYPE(shape, &vectorio_circle_type)) {
89+
common_hal_vectorio_circle_set_on_dirty(self->ishape.shape, on_dirty);
9090
} else {
9191
mp_raise_TypeError_varg(translate("unsupported %q type"), MP_QSTR_shape);
9292
}

0 commit comments

Comments
 (0)