[gimp] plug-ins: fix #5313 Exporting to "Gimp pattern" i.e. pat format fails
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix #5313 Exporting to "Gimp pattern" i.e. pat format fails
- Date: Mon, 9 Aug 2021 22:14:23 +0000 (UTC)
commit 7bb892f3d5da557711ef4e0fccc1b2ea7d2dc8d4
Author: Jacob Boerema <jgboerema gmail com>
Date: Mon Aug 9 16:28:33 2021 -0400
plug-ins: fix #5313 Exporting to "Gimp pattern" i.e. pat format fails
After the change that allows multiple layers to be selected exporting to
a pattern fails.
Patch this as suggested by Lloyd Konneker by doing the same as for brushes:
do not allow multiple layers, instead only send the first drawable.
plug-ins/common/file-pat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-pat.c b/plug-ins/common/file-pat.c
index 409aa48eb8..024b0a0087 100644
--- a/plug-ins/common/file-pat.c
+++ b/plug-ins/common/file-pat.c
@@ -229,8 +229,7 @@ pat_save (GimpProcedure *procedure,
"file-pat-save-internal",
GIMP_TYPE_RUN_MODE, GIMP_RUN_NONINTERACTIVE,
GIMP_TYPE_IMAGE, image,
- G_TYPE_INT, n_drawables,
- GIMP_TYPE_OBJECT_ARRAY, drawables,
+ GIMP_TYPE_DRAWABLE, drawables[0],
G_TYPE_FILE, file,
G_TYPE_STRING, description,
G_TYPE_NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]