ScriptFu: fix #12157 old-style dialog slider default 0 instead of declared value
This seems like a hack. A better fix might be in the gimp_scale_entry widget.
This commit is contained in:
parent
6a0844b59a
commit
0b72b028e8
1 changed files with 7 additions and 0 deletions
|
|
@ -349,6 +349,13 @@ script_fu_interface_dialog (SFScript *script,
|
|||
arg->default_value.sfa_adjustment.lower,
|
||||
arg->default_value.sfa_adjustment.upper,
|
||||
arg->default_value.sfa_adjustment.digits);
|
||||
|
||||
/* #12157 We should not need to set value, since we just passed it.
|
||||
* But seems to be a flaw in the widget.
|
||||
* The comments in gimp_label_spin_init, says it inits to bogus.
|
||||
*/
|
||||
gimp_label_spin_set_value ((GimpLabelSpin*)widget, arg->value.sfa_adjustment.value);
|
||||
|
||||
gimp_label_spin_set_increments (GIMP_LABEL_SPIN (widget),
|
||||
arg->default_value.sfa_adjustment.step,
|
||||
arg->default_value.sfa_adjustment.page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue