Commit 8a6503a7 authored by CDT 1998  Larry Ewing's avatar CDT 1998 Larry Ewing Committed by Larry Ewing
Browse files

Make sure we check that ink_set_paint_area found a valid canvas_buf.

Sun Aug 16 18:48:17 CDT 1998  Larry Ewing  <lewing@gimp.org>

	* app/ink.c (ink_paste): Make sure we check that
	ink_set_paint_area found a valid canvas_buf.
parent 29b785e1
Sun Aug 16 18:48:17 CDT 1998 Larry Ewing <lewing@gimp.org>
* app/ink.c (ink_paste): Make sure we check that
ink_set_paint_area found a valid canvas_buf.
1998-08-16 Chris Lahey <clahey@umich.edu>
* app/docindexif.c: Fixed up the UI to make the document index
......
......@@ -881,9 +881,13 @@ ink_paste (InkTool *ink_tool,
if (! (gimage = drawable_gimage (drawable)))
return;
/* Get the the buffer */
ink_set_paint_area (ink_tool, drawable, blob);
/* check to make sure there is actually a canvas to draw on */
if (!canvas_buf)
return;
gimage_get_foreground (gimage, drawable, col);
......
......@@ -881,9 +881,13 @@ ink_paste (InkTool *ink_tool,
if (! (gimage = drawable_gimage (drawable)))
return;
/* Get the the buffer */
ink_set_paint_area (ink_tool, drawable, blob);
/* check to make sure there is actually a canvas to draw on */
if (!canvas_buf)
return;
gimage_get_foreground (gimage, drawable, col);
......
......@@ -881,9 +881,13 @@ ink_paste (InkTool *ink_tool,
if (! (gimage = drawable_gimage (drawable)))
return;
/* Get the the buffer */
ink_set_paint_area (ink_tool, drawable, blob);
/* check to make sure there is actually a canvas to draw on */
if (!canvas_buf)
return;
gimage_get_foreground (gimage, drawable, col);
......
......@@ -881,9 +881,13 @@ ink_paste (InkTool *ink_tool,
if (! (gimage = drawable_gimage (drawable)))
return;
/* Get the the buffer */
ink_set_paint_area (ink_tool, drawable, blob);
/* check to make sure there is actually a canvas to draw on */
if (!canvas_buf)
return;
gimage_get_foreground (gimage, drawable, col);
......
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