[gimp] app: copy brush spacing when copying generated brushes
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: copy brush spacing when copying generated brushes
- Date: Sun, 5 Nov 2017 02:00:52 +0000 (UTC)
commit 089bfe4e3d088bdba580580e8ced1b5e9b49485d
Author: Ell <ell_se yahoo com>
Date: Sat Nov 4 21:40:11 2017 -0400
app: copy brush spacing when copying generated brushes
When copying a generated brush, copy its "spacing" property, in
addition to the other properties, which hasn't been previously
copied by ::duplicate().
app/core/gimpbrushgenerated.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c
index e29f1b0..18bfac8 100644
--- a/app/core/gimpbrushgenerated.c
+++ b/app/core/gimpbrushgenerated.c
@@ -283,6 +283,11 @@ gimp_brush_generated_copy (GimpData *data,
GimpBrushGenerated *brush = GIMP_BRUSH_GENERATED (data);
GimpBrushGenerated *src_brush = GIMP_BRUSH_GENERATED (src_data);
+ gimp_data_freeze (data);
+
+ gimp_brush_set_spacing (GIMP_BRUSH (brush),
+ gimp_brush_get_spacing (GIMP_BRUSH (src_brush)));
+
brush->shape = src_brush->shape;
brush->radius = src_brush->radius;
brush->spikes = src_brush->spikes;
@@ -290,7 +295,7 @@ gimp_brush_generated_copy (GimpData *data,
brush->aspect_ratio = src_brush->aspect_ratio;
brush->angle = src_brush->angle;
- gimp_data_dirty (data);
+ gimp_data_thaw (data);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]