clone_motion: silently ignore cloning if the clone source hasn't been

Thu Jul  9 22:04:04 EDT 1998  Michael K. Johnson <johnsonm@redhat.com>

       * app/clone.c: clone_motion: silently ignore cloning if the
         clone source hasn't been selected or no longer exists.

Slightly modified last commit to be less noisy.
This commit is contained in:
EDT 1998 Michael K. Johnson 1998-07-10 02:17:20 +00:00 committed by Michael Johnson
parent 42270eb6dc
commit 1f1c9e1684
7 changed files with 8 additions and 26 deletions

View File

@ -1,7 +1,7 @@
Thu Jul 9 22:04:04 EDT 1998 Michael K. Johnson <johnsonm@redhat.com>
* app/clone.c: clone_motion: error message instead of segv
if the clone source hasn't been selected or no longer exists.
* app/clone.c: clone_motion: silently ignore cloning if the
clone source hasn't been selected or no longer exists.
Wed Jul 8 21:34:31 PDT 1998 Jay Cox <jaycox@earthlink.net>

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))

View File

@ -332,10 +332,7 @@ clone_motion (PaintCore *paint_core,
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
{
g_message("Select source image before cloning");
return;
}
return;
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))