[gegl] gegl-path: fix a crash for line-to only paths
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-path: fix a crash for line-to only paths
- Date: Tue, 5 Apr 2016 17:50:36 +0000 (UTC)
commit 07ff1efa55c388ac29b041fadb5a8c615492a00e
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Apr 5 19:43:07 2016 +0200
gegl-path: fix a crash for line-to only paths
gegl/property-types/gegl-path.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index 622a0c7..76a67e9 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -896,7 +896,7 @@ gegl_path_append (GeglPath *self,
x0 = iter->d.point[0].x;
y0 = iter->d.point[0].y;
- for (iter2=priv->path;iter2 && iter2->next != iter;iter2=iter2->next);
+ for (iter2=priv->path;iter2 && iter2->next != iter && iter2->next;iter2=iter2->next);
x1 = iter2->d.point[0].x;
y1 = iter2->d.point[0].y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]