Skip to content

SF-ADJUSTMENT Slider Duplicate Label Fix

programmer_ceds requested to merge (removed):SFAdjustSliderFix into master

This change fixes a bug where the label for an SF-ADJUSTMENT control in the dialog for a Script-Fu script was being displayed twice if the final parameter of the SF-ADJUSTMENT parameter was a 0 (SF-SLIDER).

In script-fu-interface.c/script-fu-interface() the SF_SLIDER case for the SF_ADJUSTMENT case called gimp_scale_entry_new() with the text of the control label as the first parameter. The label text was then being displayed again later in script_fu_interface(). The change was simply to change the first parameter in the call of gimp_scale_entry_new to an empty string ("").

With this change the SF-ADJUSTMENT/SF-SLIDER control displays as it did in V2.10.x - with just the one copy of the label and room for the slider.

Merge request reports