app, pdb: gimp_text_layer_new() allows pixel unit.

As reported by NikcDC: 624e3772e9 (note_2199852)
This commit is contained in:
Jehan 2024-08-18 17:40:56 +02:00
parent e0b778fe5a
commit 518052a105
2 changed files with 2 additions and 2 deletions

View File

@ -1039,7 +1039,7 @@ register_text_layer_procs (GimpPDB *pdb)
gimp_param_spec_unit ("unit",
"unit",
"The units of specified size",
FALSE,
TRUE,
FALSE,
gimp_unit_inch (),
GIMP_PARAM_READWRITE));

View File

@ -42,7 +42,7 @@ HELP
desc => 'The font to write the text with' },
{ name => 'size', type => '0.0 <= float <= 8192.0',
desc => 'The size of text in either pixels or points' },
{ name => 'unit', type => 'unit',
{ name => 'unit', type => 'unit', allow_pixel => 1,
desc => 'The units of specified size' }
);