From 518052a105655ced31c092308bb473579cc6c0ee Mon Sep 17 00:00:00 2001 From: Jehan Date: Sun, 18 Aug 2024 17:40:56 +0200 Subject: [PATCH] app, pdb: gimp_text_layer_new() allows pixel unit. As reported by NikcDC: https://gitlab.gnome.org/GNOME/gimp/-/commit/624e3772e952a2a5ecaf9c4aaab0bf66fb44c03c#note_2199852 --- app/pdb/text-layer-cmds.c | 2 +- pdb/groups/text_layer.pdb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pdb/text-layer-cmds.c b/app/pdb/text-layer-cmds.c index 6e58529f7f..3a296f63c1 100644 --- a/app/pdb/text-layer-cmds.c +++ b/app/pdb/text-layer-cmds.c @@ -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)); diff --git a/pdb/groups/text_layer.pdb b/pdb/groups/text_layer.pdb index e030efdd4c..5394a7309f 100644 --- a/pdb/groups/text_layer.pdb +++ b/pdb/groups/text_layer.pdb @@ -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' } );