ref new tiles before unrefing the old ones.
2004-03-16 Michael Natterer <mitch@gimp.org> * app/core/gimpdrawable.c (gimp_drawable_set_tiles): ref new tiles before unrefing the old ones. * app/core/gimpimage-undo-push.c: keep undo memsize exact by adjusting undo->size when the stored data changes. * app/core/gimpchannel.[ch] (gimp_channel_new_from_alpha) * app/core/gimpchannel-select.[ch] (gimp_channel_select_alpha): replaced "layer" parameter by "drawable". * app/gui/layers-commands.c * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/selection_cmds.c: regenerated. * app/core/gimpchannel.c * app/core/gimplayer.c * app/core/gimplayermask.[ch] * app/core/gimpselection.c: remdom cleanup & code review.
This commit is contained in:

committed by
Michael Natterer

parent
05410dc036
commit
49238237dc
@ -491,7 +491,8 @@ layers_alpha_to_selection_cmd_callback (GtkWidget *widget,
|
||||
|
||||
op = (GimpChannelOps) action;
|
||||
|
||||
gimp_channel_select_alpha (gimp_image_get_mask (gimage), active_layer,
|
||||
gimp_channel_select_alpha (gimp_image_get_mask (gimage),
|
||||
GIMP_DRAWABLE (active_layer),
|
||||
op, FALSE, 0.0, 0.0);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
Reference in New Issue
Block a user