mirror of https://github.com/GNOME/gimp.git
plug-ins: use gimp_item_to_selection() instead of deprecated API
This commit is contained in:
parent
8ab4fbcf28
commit
edf1bb794f
|
@ -915,7 +915,7 @@ lcms_image_apply_profile (gint32 image,
|
|||
|
||||
if (saved_selection != -1)
|
||||
{
|
||||
gimp_selection_load (saved_selection);
|
||||
gimp_item_to_selection (saved_selection, GIMP_CHANNEL_OP_REPLACE);
|
||||
gimp_image_remove_channel (image, saved_selection);
|
||||
}
|
||||
|
||||
|
|
|
@ -3602,7 +3602,7 @@ load_xjt_image (const gchar *filename,
|
|||
if (xjt_debug) printf ("XJT-DEBUG: SELECTION loaded channel id = %d\n",
|
||||
(int) l_channel_id);
|
||||
|
||||
gimp_selection_load (l_channel_id);
|
||||
gimp_item_to_selection (l_channel_id, GIMP_CHANNEL_OP_REPLACE);
|
||||
|
||||
/* delete the channel after load into selection */
|
||||
gimp_drawable_delete (l_channel_id);
|
||||
|
|
Loading…
Reference in New Issue