[gimp/gimp-2-10] pygimp: argh...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] pygimp: argh...
- Date: Thu, 27 Jun 2019 11:48:27 +0000 (UTC)
commit 803e5bfb81bb5fe4223afdf9c63b20293eac5202
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 27 13:46:55 2019 +0200
pygimp: argh...
(cherry picked from commit d5ac62c6ebb6678b457b0162a02c7174065d9138)
plug-ins/pygimp/pygimp-drawable.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-drawable.c b/plug-ins/pygimp/pygimp-drawable.c
index 29ff71672f..41d3820fbf 100644
--- a/plug-ins/pygimp/pygimp-drawable.c
+++ b/plug-ins/pygimp/pygimp-drawable.c
@@ -174,8 +174,8 @@ drw_get_tile2(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
return Py_None;
}
- col = x / TILE_WIDTH;
- row = y / TILE_HEIGHT;
+ col = x / gimp_tile_width ();
+ row = y / gimp_tile_height ();
t = gimp_drawable_get_tile(self->drawable, shadow, col, row);
return pygimp_tile_new(t, self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]