Path.Area: deep copy on makeSection output

This commit is contained in:
Zheng, Lei
2017-06-15 14:43:49 -03:00
committed by Yorik van Havre
parent d257f1bfa5
commit 561c48acc5
+1 -1
View File
@@ -365,7 +365,7 @@ PyObject* AreaPy::makeSections(PyObject *args, PyObject *keywds)
Py::List ret;
for(auto &area : sections)
ret.append(Py::asObject(new AreaPy(new Area(*area,false))));
ret.append(Py::asObject(new AreaPy(new Area(*area,true))));
return Py::new_reference_to(ret);
}