fix problem with layers with non-zero offset.

Fri Dec 10 23:55:10 GMT 1999  Austin Donnelly  <austin@gimp.org>

	* app/iscissors.c: fix problem with layers with non-zero offset.

	* app/undo.c: Garry, you missed one "0 -> UNDO_NULL" cleanup :)
This commit is contained in:
GMT 1999 Austin Donnelly 1999-12-11 00:10:09 +00:00 committed by Austin Donnelly
parent d7bb052fb6
commit 8e134070e6
6 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,9 @@
Fri Dec 10 23:55:10 GMT 1999 Austin Donnelly <austin@gimp.org>
* app/iscissors.c: fix problem with layers with non-zero offset.
* app/undo.c: Garry, you missed one "0 -> UNDO_NULL" cleanup :)
1999-12-10 Garry R. Osgood <gosgood@idt.net>
* app/undo.c : An inadvertent substitution of UndoTypes LAYER_ADD_UNDO

View File

@ -316,7 +316,7 @@ undo_push (GImage *gimage,
gimage->dirty = 10000;
}
if (gimage->pushing_undo_group ==UNDO_NULL )
if (gimage->pushing_undo_group == UNDO_NULL)
if (! undo_free_up_space (gimage))
return NULL;
@ -520,7 +520,7 @@ undo_get_undo_name (GImage *gimage)
g_return_val_if_fail (gimage != NULL, NULL);
/* don't want to encourage undo while a group is open */
if (gimage->pushing_undo_group != 0)
if (gimage->pushing_undo_group != UNDO_NULL)
return NULL;
return undo_get_topitem_name (gimage->undo_stack);

View File

@ -384,7 +384,7 @@ iscissors_button_press (Tool *tool,
drawable = gimage_active_drawable (gdisp->gimage);
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
/* If the tool was being used in another image...reset it */
@ -691,7 +691,7 @@ iscissors_motion (Tool *tool,
draw_core_pause (iscissors->core, tool);
gdisplay_untransform_coords (gdisp, mevent->x, mevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
switch (iscissors->state)
{

View File

@ -384,7 +384,7 @@ iscissors_button_press (Tool *tool,
drawable = gimage_active_drawable (gdisp->gimage);
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
/* If the tool was being used in another image...reset it */
@ -691,7 +691,7 @@ iscissors_motion (Tool *tool,
draw_core_pause (iscissors->core, tool);
gdisplay_untransform_coords (gdisp, mevent->x, mevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
switch (iscissors->state)
{

View File

@ -384,7 +384,7 @@ iscissors_button_press (Tool *tool,
drawable = gimage_active_drawable (gdisp->gimage);
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
/* If the tool was being used in another image...reset it */
@ -691,7 +691,7 @@ iscissors_motion (Tool *tool,
draw_core_pause (iscissors->core, tool);
gdisplay_untransform_coords (gdisp, mevent->x, mevent->y,
&iscissors->x, &iscissors->y, FALSE, TRUE);
&iscissors->x, &iscissors->y, FALSE, FALSE);
switch (iscissors->state)
{

View File

@ -316,7 +316,7 @@ undo_push (GImage *gimage,
gimage->dirty = 10000;
}
if (gimage->pushing_undo_group ==UNDO_NULL )
if (gimage->pushing_undo_group == UNDO_NULL)
if (! undo_free_up_space (gimage))
return NULL;
@ -520,7 +520,7 @@ undo_get_undo_name (GImage *gimage)
g_return_val_if_fail (gimage != NULL, NULL);
/* don't want to encourage undo while a group is open */
if (gimage->pushing_undo_group != 0)
if (gimage->pushing_undo_group != UNDO_NULL)
return NULL;
return undo_get_topitem_name (gimage->undo_stack);