[gtk/matthiasc/lottie] Maintain smoothness harder



commit c77d126bf4109fd526a28dbfd020a336efe0659c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 21 22:35:27 2020 -0500

    Maintain smoothness harder
    
    When removing a point, we need to ensure that
    the neighboring point is still smooth.

 tests/curve-editor.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tests/curve-editor.c b/tests/curve-editor.c
index f58b336dc8..2e9f7cb2d0 100644
--- a/tests/curve-editor.c
+++ b/tests/curve-editor.c
@@ -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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]