From 74424325abb54620b370f2595445b2b2a19fe5e7 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 21 Apr 2009 10:24:52 +0200 Subject: [PATCH] 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). --- plug-ins/pygimp/pygimp-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/pygimp/pygimp-image.c b/plug-ins/pygimp/pygimp-image.c index 97ee592808..6a03fc2467 100644 --- a/plug-ins/pygimp/pygimp-image.c +++ b/plug-ins/pygimp/pygimp-image.c @@ -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,