mirror of https://github.com/GNOME/gimp.git
Use gimp_drawable_type() instead of drawable->type
This commit is contained in:
parent
13ac22d800
commit
e77f6b10f4
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue