fixed orientation type used for linked items (bug #499161).

2007-11-28  Sven Neumann  <sven@gimp.org>

	* app/actions/drawable-commands.c (drawable_flip_cmd_callback):
	fixed orientation type used for linked items (bug #499161).


svn path=/trunk/; revision=24238
This commit is contained in:
Sven Neumann
2007-11-28 08:16:05 +00:00
committed by Sven Neumann
parent 12efe4d222
commit d308a61f69
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2007-11-28 Sven Neumann <sven@gimp.org>
* app/actions/drawable-commands.c (drawable_flip_cmd_callback):
fixed orientation type used for linked items (bug #499161).
* app/core/gimpdrawable-transform.c
(gimp_drawable_transform_tiles_flip): fixed typo in if condition
and added more sanity checks.

View File

@ -268,12 +268,13 @@ drawable_flip_cmd_callback (GtkAction *action,
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_TRANSFORM,
GIMP_ITEM_GET_CLASS (item)->flip_desc);
gimp_item_flip (item, context, (GimpOrientationType) value, axis, FALSE);
gimp_item_flip (item, context,
(GimpOrientationType) value, axis, FALSE);
if (gimp_item_get_linked (item))
{
gimp_item_linked_flip (item, context, (GimpOrientationType) action, axis,
FALSE);
gimp_item_linked_flip (item, context,
(GimpOrientationType) value, axis, FALSE);
gimp_image_undo_group_end (image);
}