gimp r26784 - in trunk: . plug-ins/pygimp
- From: larsc svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26784 - in trunk: . plug-ins/pygimp
- Date: Tue, 26 Aug 2008 21:59:21 +0000 (UTC)
Author: larsc
Date: Tue Aug 26 21:59:21 2008
New Revision: 26784
URL: http://svn.gnome.org/viewvc/gimp?rev=26784&view=rev
Log:
2008-08-26 Lars-Peter Clausen <lars metafoo de>
* plug-ins/pygimp/pygimp-tile.c
(pf_init): Ensure that the python drawables gimp drawable is set.
(pf_dealloc): Don't crash if the pixel fetchers init function failed.
Modified:
trunk/ChangeLog
trunk/plug-ins/pygimp/pygimp-tile.c
Modified: trunk/plug-ins/pygimp/pygimp-tile.c
==============================================================================
--- trunk/plug-ins/pygimp/pygimp-tile.c (original)
+++ trunk/plug-ins/pygimp/pygimp-tile.c Tue Aug 26 21:59:21 2008
@@ -902,7 +902,8 @@
{
gimp_pixel_fetcher_destroy(self->pf);
- Py_DECREF(self->drawable);
+ Py_XDECREF(self->drawable);
+
PyObject_DEL(self);
}
@@ -942,6 +943,9 @@
&edge_mode))
return -1;
+ if(!drw->drawable)
+ drw->drawable = gimp_drawable_get(drw->ID);
+
self->pf = gimp_pixel_fetcher_new(drw->drawable, shadow);
Py_INCREF(drw);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]