mirror of https://github.com/GNOME/gimp.git
relax/rigor the floating selection around the convert operations so color
2005-02-02 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-convert.c (gimp_image_convert): relax/rigor the floating selection around the convert operations so color analysis for indexed conversion works on the floating selection's drawable original pixels, and not on the composited one. Fixes bug #165342.
This commit is contained in:
parent
ab7774989a
commit
b62b9b42bf
|
@ -1,3 +1,11 @@
|
|||
2005-02-02 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage-convert.c (gimp_image_convert): relax/rigor
|
||||
the floating selection around the convert operations so color
|
||||
analysis for indexed conversion works on the floating selection's
|
||||
drawable original pixels, and not on the composited one.
|
||||
Fixes bug #165342.
|
||||
|
||||
2005-02-02 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* data/misc/gimp.desktop.in.in (_Name): experimentally expand the
|
||||
|
|
|
@ -147,6 +147,7 @@
|
|||
#include "gimpimage-undo-push.h"
|
||||
#include "gimplist.h"
|
||||
#include "gimplayer.h"
|
||||
#include "gimplayer-floating-sel.h"
|
||||
#include "gimppalette.h"
|
||||
#include "gimpprogress.h"
|
||||
|
||||
|
@ -802,6 +803,9 @@ gimp_image_convert (GimpImage *gimage,
|
|||
gimp_image_undo_group_start (gimage, GIMP_UNDO_GROUP_IMAGE_CONVERT,
|
||||
undo_desc);
|
||||
|
||||
if (gimp_image_floating_sel (gimage))
|
||||
floating_sel_relax (gimp_image_floating_sel (gimage), TRUE);
|
||||
|
||||
/* Push the image type to the stack */
|
||||
gimp_image_undo_push_image_type (gimage, NULL);
|
||||
|
||||
|
@ -1058,6 +1062,9 @@ gimp_image_convert (GimpImage *gimage,
|
|||
if (quantobj)
|
||||
quantobj->delete_func (quantobj);
|
||||
|
||||
if (gimp_image_floating_sel (gimage))
|
||||
floating_sel_rigor (gimp_image_floating_sel (gimage), TRUE);
|
||||
|
||||
gimp_image_undo_group_end (gimage);
|
||||
|
||||
gimp_image_invalidate_layer_previews (gimage);
|
||||
|
|
Loading…
Reference in New Issue