From 2f8476bd18ce2b01516133564e894be1d3c4b4c5 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 23 Jun 2015 10:24:25 +0200 Subject: [PATCH] app: fix update of group layers when size changes only trigger an offset change In gimp_group_layer_update_size(), when the new size happens to be the same as the old size, we need to call gimp_pickable_flush() on the group projection so it is ready to be used for rendering the image, just like in gimp_group_layer_stack_update(). --- app/core/gimpgrouplayer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c index a6fa5e8908..d562222fc6 100644 --- a/app/core/gimpgrouplayer.c +++ b/app/core/gimpgrouplayer.c @@ -1208,6 +1208,9 @@ gimp_group_layer_update_size (GimpGroupLayer *group) */ gimp_projectable_invalidate (GIMP_PROJECTABLE (group), x, y, width, height); + + /* see comment in gimp_group_layer_stack_update() below */ + gimp_pickable_flush (GIMP_PICKABLE (GET_PRIVATE (group)->projection)); } } }