mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
dbb7233d19
commit
3669acf7cc
@ -736,7 +736,7 @@ magick_Image_add_border(magick_Image *self, PyObject *args, PyObject *kwargs) {
|
|||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
magick_PixelWand *pw;
|
magick_PixelWand *pw;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "O!dd", &magick_PixelWandType, &obj, &dx, &dy)) return NULL;
|
if (!PyArg_ParseTuple(args, "O!nn", &magick_PixelWandType, &obj, &dx, &dy)) return NULL;
|
||||||
pw = (magick_PixelWand*)obj;
|
pw = (magick_PixelWand*)obj;
|
||||||
if (!IsPixelWand(pw->wand)) { PyErr_SetString(PyExc_TypeError, "Invalid PixelWand"); return NULL; }
|
if (!IsPixelWand(pw->wand)) { PyErr_SetString(PyExc_TypeError, "Invalid PixelWand"); return NULL; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user