Commit 42270eb6 authored by EDT 1998  Michael K. Johnson's avatar EDT 1998 Michael K. Johnson Committed by Michael Johnson
Browse files

clone_motion: error message instead of segv if the clone source hasn't

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.
parent b7d8e6ea
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.
Wed Jul 8 21:34:31 PDT 1998 Jay Cox <jaycox@earthlink.net>
* app/brushes.c app/brushes.h: removed files
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
......@@ -329,9 +329,13 @@ clone_motion (PaintCore *paint_core,
pattern = NULL;
/* Make sure we still have a source! */
if ((! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
if (!src_drawable ||
(! (src_gimage = drawable_gimage (src_drawable)) && type == ImageClone) ||
! (gimage = drawable_gimage (drawable)))
return;
{
g_message("Select source image before cloning");
return;
}
/* Get a region which can be used to paint to */
if (! (area = paint_core_get_paint_area (paint_core, drawable)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment