bugfixes for .parent property - partial #183 solution
This commit is contained in:
parent
a4c2c04343
commit
7e47050d6f
9 changed files with 357 additions and 149 deletions
|
|
@ -207,7 +207,7 @@ PyObject* UIGridPointState::get_point(PyUIGridPointStateObject* self, void* clos
|
|||
if (!obj) return NULL;
|
||||
|
||||
// Get the GridPoint from the grid
|
||||
int idx = self->y * self->grid->grid_x + self->x;
|
||||
int idx = self->y * self->grid->grid_w + self->x;
|
||||
if (idx < 0 || idx >= static_cast<int>(self->grid->points.size())) {
|
||||
Py_DECREF(obj);
|
||||
PyErr_SetString(PyExc_IndexError, "GridPointState position out of bounds");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue