[gimp/gimp-2-8] app: fix update of group layers when size changes only trigger an offset change
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] app: fix update of group layers when size changes only trigger an offset change
- Date: Tue, 23 Jun 2015 08:32:01 +0000 (UTC)
commit e645b922bfe2d4029243011381c852cbcc9a398f
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 23 10:24:25 2015 +0200
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().
(cherry picked from commit 2f8476bd18ce2b01516133564e894be1d3c4b4c5)
app/core/gimpgrouplayer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index 3a31c6d..e6b1162 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -1131,6 +1131,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));
}
if (private->offset_node)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]