Commit d942668f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

check if the drawable type fits to the image. This assertion would have

2003-06-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_configure): check if the
	drawable type fits to the image. This assertion would have catched
	the problem below.
parent 653b4e0f
2003-06-12 Sven Neumann <sven@gimp.org>
 
* app/core/gimpdrawable.c (gimp_drawable_configure): check if the
drawable type fits to the image. This assertion would have catched
the problem below.
* app/core/gimptemplate.c (gimp_template_create_image): handle all
fill types, fixes bug #114979.
 
......@@ -572,6 +572,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
{
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
g_return_if_fail (GIMP_IS_IMAGE (gimage));
g_return_if_fail (GIMP_IMAGE_TYPE_BASE_TYPE (type) == gimp_image_base_type (gimage));
gimp_item_configure (GIMP_ITEM (drawable), gimage,
offset_x, offset_y, width, height, name);
......@@ -583,8 +584,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
if (drawable->tiles)
tile_manager_unref (drawable->tiles);
drawable->tiles = tile_manager_new (width, height,
drawable->bytes);
drawable->tiles = tile_manager_new (width, height, drawable->bytes);
drawable->visible = TRUE;
......
Supports Markdown
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