Fix T39392: Python bindings for geometry.box_pack_2d() return invalid total height
This commit is contained in:
@@ -1515,7 +1515,7 @@ static PyObject *M_Geometry_box_pack_2d(PyObject *UNUSED(self), PyObject *boxlis
|
|||||||
|
|
||||||
ret = PyTuple_New(2);
|
ret = PyTuple_New(2);
|
||||||
PyTuple_SET_ITEM(ret, 0, PyFloat_FromDouble(tot_width));
|
PyTuple_SET_ITEM(ret, 0, PyFloat_FromDouble(tot_width));
|
||||||
PyTuple_SET_ITEM(ret, 1, PyFloat_FromDouble(tot_width));
|
PyTuple_SET_ITEM(ret, 1, PyFloat_FromDouble(tot_height));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user