[gimp/gimp-2-6] Fix default values for Image.new_layer() methods
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp/gimp-2-6] Fix default values for Image.new_layer() methods
- Date: Thu, 21 May 2009 07:55:43 -0400 (EDT)
commit da971fc266765e081a6ad76129b91b6893be9d1d
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 38850c0..8a7e8db 100644
--- a/plug-ins/pygimp/pygimp-image.c
+++ b/plug-ins/pygimp/pygimp-image.c
@@ -87,7 +87,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]