mirror of https://github.com/GNOME/gimp.git
app/edit_cmds.c fix warnings about using uninitialized gimage args + one
Mon Nov 16 21:46:39 1998 Austin Donnelly <austin@greenend.org.uk> * app/edit_cmds.c * app/gimage_mask_cmds.c: fix warnings about using uninitialized gimage args + one real uninited variable bug.
This commit is contained in:
parent
44b1e35036
commit
a6026d29cd
|
@ -1,3 +1,9 @@
|
|||
Mon Nov 16 21:46:39 1998 Austin Donnelly <austin@greenend.org.uk>
|
||||
|
||||
* app/edit_cmds.c
|
||||
* app/gimage_mask_cmds.c: fix warnings about using uninitialized
|
||||
gimage args + one real uninited variable bug.
|
||||
|
||||
Mon Nov 16 19:04:54 MET 1998 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gimage_cmds.[ch]
|
||||
|
|
|
@ -52,9 +52,14 @@ edit_cut_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
/* create the new image */
|
||||
if (success)
|
||||
|
@ -113,9 +118,14 @@ edit_copy_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
|
||||
/* create the new image */
|
||||
|
@ -177,9 +187,14 @@ edit_paste_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
if (success)
|
||||
{
|
||||
|
@ -261,9 +276,14 @@ edit_clear_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
|
||||
/* create the new image */
|
||||
|
@ -322,9 +342,14 @@ edit_fill_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
|
||||
/* create the new image */
|
||||
|
@ -384,9 +409,14 @@ edit_stroke_invoker (Argument *args)
|
|||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
|
||||
/* create the new image */
|
||||
|
|
|
@ -359,10 +359,16 @@ gimage_mask_float_invoker (Argument *args)
|
|||
if (success)
|
||||
{
|
||||
int_value = args[0].value.pdb_int;
|
||||
drawable = drawable_get_ID (int_value);
|
||||
if (drawable == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (drawable);
|
||||
{
|
||||
gimage = drawable_gimage (drawable);
|
||||
}
|
||||
}
|
||||
if (success)
|
||||
{
|
||||
|
@ -969,9 +975,14 @@ gimage_mask_layer_alpha_invoker (Argument *args)
|
|||
{
|
||||
int_value = args[0].value.pdb_int;
|
||||
if ((layer = layer_get_ID (int_value)) == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
gimage = drawable_gimage (GIMP_DRAWABLE(layer));
|
||||
{
|
||||
gimage = drawable_gimage (GIMP_DRAWABLE(layer));
|
||||
}
|
||||
}
|
||||
if (success)
|
||||
gimage_mask_layer_alpha (gimage, layer);
|
||||
|
@ -1025,7 +1036,10 @@ gimage_mask_load_invoker (Argument *args)
|
|||
{
|
||||
int_value = args[0].value.pdb_int;
|
||||
if ((channel = channel_get_ID (int_value)) == NULL)
|
||||
success = FALSE;
|
||||
{
|
||||
success = FALSE;
|
||||
gimage = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
success = (drawable_width (GIMP_DRAWABLE(channel)) == gimage->width &&
|
||||
|
|
Loading…
Reference in New Issue