get rid of useless casts.

2008-11-13  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/image.pdb (image_floating_sel_attached_to): get
	rid of useless casts.

	* app/pdb/image-cmds.c: regenerated.


svn path=/trunk/; revision=27639
This commit is contained in:
Michael Natterer 2008-11-13 15:42:58 +00:00 committed by Michael Natterer
parent 9476973c62
commit 4599c75c06
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-11-13 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/image.pdb (image_floating_sel_attached_to): get
rid of useless casts.
* app/pdb/image-cmds.c: regenerated.
2008-11-13 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.c: add read-only boolean properties "visible"

View File

@ -777,7 +777,7 @@ image_floating_sel_attached_to_invoker (GimpProcedure *procedure,
GimpLayer *floating_sel = gimp_image_floating_sel (image);
if (floating_sel)
drawable = GIMP_DRAWABLE (GIMP_LAYER (floating_sel)->fs.drawable);
drawable = floating_sel->fs.drawable;
else
drawable = NULL;
}

View File

@ -1711,7 +1711,7 @@ HELP
GimpLayer *floating_sel = gimp_image_floating_sel (image);
if (floating_sel)
drawable = GIMP_DRAWABLE (GIMP_LAYER (floating_sel)->fs.drawable);
drawable = floating_sel->fs.drawable;
else
drawable = NULL;
}