Use gimp_drawable_type() instead of drawable->type

This commit is contained in:
Michael Natterer 2009-09-08 17:07:33 +02:00
parent 13ac22d800
commit e77f6b10f4
2 changed files with 2 additions and 4 deletions

View File

@ -127,7 +127,7 @@ gimp_drawable_mod_undo_pop (GimpUndo *undo,
offset_y = drawable_mod_undo->offset_y;
drawable_mod_undo->tiles = tile_manager_ref (gimp_drawable_get_tiles (drawable));
drawable_mod_undo->type = drawable->type;
drawable_mod_undo->type = gimp_drawable_type (drawable);
gimp_item_get_offset (GIMP_ITEM (drawable),
&drawable_mod_undo->offset_x,

View File

@ -1530,9 +1530,7 @@ gimp_layer_create_mask (const GimpLayer *layer,
case GIMP_ADD_COPY_MASK:
{
TileManager *copy_tiles = NULL;
GimpImageType layer_type;
layer_type = drawable->type;
GimpImageType layer_type = gimp_drawable_type (drawable);
if (GIMP_IMAGE_TYPE_BASE_TYPE (layer_type) != GIMP_GRAY)
{