Commits

Barry Schwartz  committed cccef6d

Changes of uncertain quality to path_to_cubic_bezier_curves_wrapper

  • Participants
  • Parent commits 807dd0e

Comments (0)

Files changed (1)

File caml2geom_stubs.c

     CAMLlocal3(_list, _node, _curve);
     Geom::Path *path = OPAQUE_P(Geom::Path, _path);
     _list = Val_emptylist;
-    Geom::Path::const_iterator i = path->end_default();
+    // Geom::Path::const_iterator i = path->end_default(); // FIXME: What is the situation with these end_* methods?
+    Geom::Path::const_iterator i = path->end_open();
     while (i != path->begin()) {
         i--;
         Geom::Curve *curve = i->duplicate();
             _list = _node;
         } else {
             Geom::Path p = cubicbezierpath_from_sbasis(curve->toSBasis(), Double_val(_tol));
-            Geom::Path::const_iterator j = p.end_default();
+            // Geom::Path::const_iterator j = p.end_default(); // FIXME: What is the situation with these end_* methods?
+            Geom::Path::const_iterator j = p.end_open();
             while (j != p.begin()) {
                 j--;
                 bc = dynamic_cast<Geom::BezierCurve*>(j->duplicate());