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.
This commit is contained in:
Jacob Boerema 2021-08-09 16:28:33 -04:00
parent 65950de735
commit 7bb892f3d5
1 changed files with 1 additions and 2 deletions

View File

@ -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);