diff --git a/ChangeLog b/ChangeLog index 2061fbcf42..a23be7541e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-17 Sven Neumann + + * app/core/gimpprojection-construct.c (project_intensity): minor + cleanup. + 2007-12-17 Sven Neumann * libgimp/gimpregioniterator.c: code cleanup; reduced number of diff --git a/app/core/gimpprojection-construct.c b/app/core/gimpprojection-construct.c index a7aa329c44..02d7d1b690 100644 --- a/app/core/gimpprojection-construct.c +++ b/app/core/gimpprojection-construct.c @@ -393,18 +393,22 @@ project_intensity (GimpProjection *proj, PixelRegion *dest, PixelRegion *mask) { - if (! proj->construct_flag) - initial_region (src, dest, mask, NULL, - layer->opacity * 255.999, - layer->mode, - proj->image->visible, - INITIAL_INTENSITY); + if (proj->construct_flag) + { + combine_regions (dest, src, dest, mask, NULL, + layer->opacity * 255.999, + layer->mode, + proj->image->visible, + COMBINE_INTEN_A_INTEN); + } else - combine_regions (dest, src, dest, mask, NULL, - layer->opacity * 255.999, - layer->mode, - proj->image->visible, - COMBINE_INTEN_A_INTEN); + { + initial_region (src, dest, mask, NULL, + layer->opacity * 255.999, + layer->mode, + proj->image->visible, + INITIAL_INTENSITY); + } } static void