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.
This commit is contained in:
Sven Neumann 2004-11-23 09:32:54 +00:00 committed by Sven Neumann
parent cacacb8e6c
commit f653295e5d
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,13 @@
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

View File

@ -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;

View File

@ -31,6 +31,7 @@
<placeholder name="Send" />
<separator />
<menuitem action="view-close" />
<menuitem action="file-quit" />
</menu>
<!-- Context