Path.Area: deep copy on makeSection output

This commit is contained in:
Zheng, Lei
2017-06-14 14:45:42 +08:00
committed by Yorik van Havre
parent d257f1bfa5
commit 561c48acc5

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);
}