Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed2533 commit 4815f98Copy full SHA for 4815f98
1 file changed
src/_path.cpp
@@ -1120,7 +1120,7 @@ Py::Object _path_module::convert_path_to_polygons(const Py::Tuple& args)
1120
double x, y;
1121
unsigned code;
1122
1123
- polygon.reserve(path.total_vertices());
+ polygon.reserve(path.total_vertices() * 2);
1124
1125
while ((code = curve.vertex(&x, &y)) != agg::path_cmd_stop)
1126
{
0 commit comments