Commit f653295e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

do nothing if the size doesn't change. This keeps text layers from being

2004-11-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_resize): do nothing if
	the size doesn't change. This keeps text layers from being
	modified when an image is cropped and the layer is entirely inside
	the cropped area.

	* menus/image-menu.xml.in: put the Quit item back for now. We
	should think about this again in the next development cycle.
parent cacacb8e
2004-11-23 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable.c (gimp_drawable_resize): do nothing if
the size doesn't change. This keeps text layers from being
modified when an image is cropped and the layer is entirely inside
the cropped area.
* menus/image-menu.xml.in: put the Quit item back for now. We
should think about this again in the next development cycle.
2004-11-21 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/script-fu/scripts/copy-visible.scm: Fixed incorrect
......
......@@ -449,6 +449,10 @@ gimp_drawable_resize (GimpItem *item,
gint copy_x, copy_y;
gint copy_width, copy_height;
/* if the size doesn't change, this is a nop */
if (item->width == new_width && item->height == new_height)
return;
new_offset_x = item->offset_x - offset_x;
new_offset_y = item->offset_y - offset_y;
......
......@@ -31,6 +31,7 @@
<placeholder name="Send" />
<separator />
<menuitem action="view-close" />
<menuitem action="file-quit" />
</menu>
<!-- Context
......
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