plug-ins: restrict GIH max dimensions to GIMP_PIXPIPE_MAXDIM

In 06bd1f1289 the max number of
dimensions was set to 1000, but the plug-in runs into a
segfault when dimension >4. The rest of the plug-in uses
GIMP_PIXPIPE_MAXDIM as max (4), so use it for the dimension argument
as well.
This commit is contained in:
Anders Jonsson 2025-02-24 13:37:31 +01:00 committed by Jacob Boerema
parent d7cfc441e0
commit 8f6c6867c8

View file

@ -238,7 +238,7 @@ gih_create_procedure (GimpPlugIn *plug_in,
gimp_procedure_add_int_aux_argument (procedure, "dimension",
_("D_imension"),
_("How many dimensions the animated brush has"),
1, 1000, 1,
1, GIMP_PIXPIPE_MAXDIM, 1,
GIMP_PARAM_READWRITE);
gimp_procedure_add_int32_array_aux_argument (procedure, "guides",