Skip to content
  • Ell's avatar
    Issue #2473 - Transforming a layer doesn't properly transform its mask · 7ca3fe65
    Ell authored
    In gimp_drawable_transform_buffer_affine(), avoid modifying the
    clipping mode when transforming layer masks, since this function is
    used (among other things) to transform layer masks together with
    their layer, in which case they should use the same clipping mode
    as the layer.
    
    This fixes a regression introduced by commit
    2ae823ba, causing layer masks to be
    transformed with a mismatched clipping mode during layer
    transforms, leading to discrepencies between the transformed layer
    and the transformed mask.
    
    This commit merely reverts the necessary part of above commit,
    fixing the regression, though note that this code is really up for
    some serious refactoring: the logic for determining which clipping
    mode to use when is spread all over the place.
    
    (cherry picked from commit 45fc30ca)
    7ca3fe65