gegl r2361 - in trunk: . gegl/graph
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2361 - in trunk: . gegl/graph
- Date: Thu, 29 May 2008 17:12:05 +0000 (UTC)
Author: ok
Date: Thu May 29 17:12:04 2008
New Revision: 2361
URL: http://svn.gnome.org/viewvc/gegl?rev=2361&view=rev
Log:
* gegl/graph/gegl-node.c: (gegl_node_set_op_class): bail out early and
do not touch the var_args if first_property == NULL.
Modified:
trunk/ChangeLog
trunk/gegl/graph/gegl-node.c
Modified: trunk/gegl/graph/gegl-node.c
==============================================================================
--- trunk/gegl/graph/gegl-node.c (original)
+++ trunk/gegl/graph/gegl-node.c Thu May 29 17:12:04 2008
@@ -301,7 +301,12 @@
break;
case PROP_OP_CLASS:
- gegl_node_set_op_class (node, g_value_get_string (value), NULL, NULL);
+ {
+ va_list null; /* dummy to pass along, it's not used anyways since
+ * the preceding argument is NULL
+ */
+ gegl_node_set_op_class (node, g_value_get_string (value), NULL, null);
+ }
break;
case PROP_OPERATION:
@@ -948,7 +953,8 @@
}
if (node->operation &&
- type == G_OBJECT_TYPE (node->operation))
+ type == G_OBJECT_TYPE (node->operation) &&
+ first_property)
{
gegl_node_set_valist (node, first_property, var_args);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]