gegl r2466 - in trunk: . gegl/operation
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2466 - in trunk: . gegl/operation
- Date: Sun, 15 Jun 2008 08:05:58 +0000 (UTC)
Author: martinn
Date: Sun Jun 15 08:05:58 2008
New Revision: 2466
URL: http://svn.gnome.org/viewvc/gegl?rev=2466&view=rev
Log:
2008-06-15 Martin Nordholts <martinn svn gnome org>
* gegl/operation/gegl-operation.c (get_bounding_box): Refactor
away return in-the-middle and update warning message.
Modified:
trunk/ChangeLog
trunk/gegl/operation/gegl-operation.c
Modified: trunk/gegl/operation/gegl-operation.c
==============================================================================
--- trunk/gegl/operation/gegl-operation.c (original)
+++ trunk/gegl/operation/gegl-operation.c Sun Jun 15 08:05:58 2008
@@ -286,11 +286,17 @@
if (self->node->is_graph)
{
- return gegl_operation_get_bounding_box (
- gegl_node_get_output_proxy (self->node, "output")->operation);
+ GeglOperation *operation;
+
+ operation = gegl_node_get_output_proxy (self->node, "output")->operation;
+ rect = gegl_operation_get_bounding_box (operation);
+ }
+ else
+ {
+ g_warning ("Operation '%s' has no get_bounding_box() method",
+ G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS (self)));
}
- g_warning ("Op '%s' has no defined_region method",
- G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS (self)));
+
return rect;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]