mirror of https://github.com/GNOME/gimp.git
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:
parent
d7bb052fb6
commit
8e134070e6
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue