[gimp] Fix default values for Image.new_layer() methods



commit 74424325abb54620b370f2595445b2b2a19fe5e7
Author: Sven Neumann <s neumann phase-zero de>
Date:   Tue Apr 21 10:24:52 2009 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plug-ins/pygimp/pygimp-image.c b/plug-ins/pygimp/pygimp-image.c
index 97ee592..6a03fc2 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]