Maintain smoothness harder

When removing a point, we need to ensure that
the neighboring point is still smooth.
This commit is contained in:
Matthias Clasen
2020-11-21 22:35:27 -05:00
parent 12ac1dfdbe
commit c77d126bf4

View File

@@ -1000,6 +1000,10 @@ remove_point (GSimpleAction *action,
self->points = g_realloc (self->points, sizeof (PointData) * (self->n_points - 1));
self->n_points -= 1;
maintain_smoothness (self, self->context);
gtk_widget_queue_draw (GTK_WIDGET (self));
}
/* }}} */
/* {{{ Event handlers */