mirror of https://github.com/GNOME/gimp.git
Fix default values for Image.new_layer() methods
Use image height instead of width as the default height of the newly created layer (bug #579400).
This commit is contained in:
parent
22e4fa3116
commit
74424325ab
|
@ -86,7 +86,7 @@ img_new_layer(PyGimpImage *self, PyObject *args, PyObject *kwargs)
|
|||
layer_name = "New Layer";
|
||||
|
||||
width = gimp_image_width(self->ID);
|
||||
height = gimp_image_width(self->ID);
|
||||
height = gimp_image_height(self->ID);
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"|siiiiiidii:new_layer", kwlist,
|
||||
|
|
Loading…
Reference in New Issue