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:
Sven Neumann 2009-04-21 10:24:52 +02:00
parent 22e4fa3116
commit 74424325ab
1 changed files with 1 additions and 1 deletions

View File

@ -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,