Issue #14442: undo crops layer rendering out of its off-border effects.
This was happening in multiple cases, such as undoing a "Rasterize filters" action, but also with a "Layer to Image Size" being undone, and probably any other undo cases. In particular here the culprit was that upon undoing, we were setting the GimpApplicator's "gimp:compose-crop" node, while it was a "gegl:nop" before. We must be careful not to set a crop unexpectedly when the node was not set already, explicitly.
This commit is contained in:
parent
083360fac1
commit
0157a9581e
1 changed files with 4 additions and 3 deletions
|
|
@ -1331,12 +1331,13 @@ gimp_drawable_filter_layer_mask_freeze (GimpDrawableFilter *filter)
|
|||
filter);
|
||||
}
|
||||
|
||||
void gimp_drawable_filter_refresh_crop (GimpDrawableFilter *filter,
|
||||
GeglRectangle *rect)
|
||||
void
|
||||
gimp_drawable_filter_refresh_crop (GimpDrawableFilter *filter,
|
||||
GeglRectangle *rect)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_DRAWABLE_FILTER (filter));
|
||||
|
||||
if (rect)
|
||||
if (rect && filter->crop_enabled)
|
||||
{
|
||||
/* Some filters have built-in width/height properties that limit
|
||||
* the buffer size. If they have one in those roles, we can update
|
||||
|
|
|
|||
Loading…
Reference in a new issue