Barry Schwartz avatar Barry Schwartz committed cccef6d

Changes of uncertain quality to path_to_cubic_bezier_curves_wrapper

Comments (0)

Files changed (1)

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());
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.