Index: trunk/src_plugins/sketch_route/cdt/cdt.c =================================================================== --- trunk/src_plugins/sketch_route/cdt/cdt.c (revision 17773) +++ trunk/src_plugins/sketch_route/cdt/cdt.c (revision 17774) @@ -679,7 +679,7 @@ POINTLIST_FOREACH(p, polygon) if (p != t->p[0] && p != t->p[1] && p != t->p[2] && is_point_in_circumcircle(p, t)) { for (i = 0; i < 3; i++) { - if (t->p[i] != edge->endp[0] && t->p[i] != edge->endp[1]) + if (t->p[i] != e->endp[0] && t->p[i] != e->endp[1]) polygon = pointlist_prepend(polygon, &t->p[i]); if (t->e[i] != e) border_edges = edgelist_prepend(border_edges, &t->e[i]);