[gegl] gegl: GeglPath make iteration of path more robust



commit 4c136fa0fbbf487cf50ba2bd3a06c69fb70156d3
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Dec 20 14:54:28 2018 +0100

    gegl: GeglPath make iteration of path more robust

 gegl/property-types/gegl-path.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index b49803776..c5393d1e6 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -519,7 +519,7 @@ gegl_path_calc (GeglPath   *self,
                 gdouble    *yd)
 {
   GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (self);
-  GeglPathList *entry = priv->flat_path;
+  GeglPathList *entry;
   GeglPathList *stop  = NULL;
   gdouble rel_pos  = 0.0;
   gdouble leftover = 0.0;
@@ -528,6 +528,7 @@ gegl_path_calc (GeglPath   *self,
   if (!self)
     return FALSE;
   ensure_flattened (self);
+  entry = priv->flat_path;
 
   if (priv->calc_clean && (pos > priv->calc_leftover))
     {


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