Commit 6d075aa1 authored by Michael Natterer's avatar Michael Natterer 😴

app: some cleanup in the first of the two assert removals below

parent 12148e04
......@@ -347,6 +347,8 @@ gimp_drawable_transform_rotate_point (gint x,
break;
default:
*new_x = x;
*new_y = y;
g_return_if_reached ();
}
}
......
......@@ -896,8 +896,6 @@ get_projection_format (GimpProjectable *projectable,
}
g_return_val_if_reached (NULL);
return NULL;
}
static void
......
......@@ -71,8 +71,6 @@ gimp_image_rotate (GimpImage *image,
g_return_if_fail (GIMP_IS_CONTEXT (context));
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
gimp_set_busy (image->gimp);
previous_image_width = gimp_image_get_width (image);
previous_image_height = gimp_image_get_height (image);
......@@ -84,10 +82,6 @@ gimp_image_rotate (GimpImage *image,
gimp_container_get_n_children (gimp_image_get_vectors (image)) +
1 /* selection */);
g_object_freeze_notify (G_OBJECT (image));
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_IMAGE_ROTATE, NULL);
/* Resize the image (if needed) */
switch (rotate_type)
{
......@@ -113,6 +107,12 @@ gimp_image_rotate (GimpImage *image,
return;
}
gimp_set_busy (image->gimp);
g_object_freeze_notify (G_OBJECT (image));
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_IMAGE_ROTATE, NULL);
/* Rotate all channels */
for (list = gimp_image_get_channel_iter (image);
list;
......
......@@ -1449,8 +1449,6 @@ gimp_image_get_proj_format (GimpProjectable *projectable)
}
g_return_val_if_reached (NULL);
return NULL;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment