[gimp/gimp-2-8] Bug 733839 - Crashes on scaling a layer with mask within a group
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 733839 - Crashes on scaling a layer with mask within a group
- Date: Sun, 30 Nov 2014 22:47:12 +0000 (UTC)
commit a01856d82066446b8b85ec9bfba2e104d52cc5a4
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 30 23:45:46 2014 +0100
Bug 733839 - Crashes on scaling a layer with mask within a group
gimp_layer_scale(): scale the mask first, so group layer projection
updating doesn't run into wrong tile manager sizes at the wrong
time.
app/core/gimplayer.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index 7e9aab3..3251add 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -692,15 +692,16 @@ gimp_layer_scale (GimpItem *item,
{
GimpLayer *layer = GIMP_LAYER (item);
- GIMP_ITEM_CLASS (parent_class)->scale (item, new_width, new_height,
- new_offset_x, new_offset_y,
- interpolation_type, progress);
-
+ /* scale mask first, see bug 733839 */
if (layer->mask)
gimp_item_scale (GIMP_ITEM (layer->mask),
new_width, new_height,
new_offset_x, new_offset_y,
interpolation_type, progress);
+
+ GIMP_ITEM_CLASS (parent_class)->scale (item, new_width, new_height,
+ new_offset_x, new_offset_y,
+ interpolation_type, progress);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]