Commit 5a318108 authored by Stewart Brodie's avatar Stewart Brodie

Fix for PAN-01591. Setting a large percentage value for one of the preset...

Fix for PAN-01591.  Setting a large percentage value for one of the preset buttons in a Scale object does not cause random crashes/machine freezes
parent 9ae0abc1
......@@ -125,7 +125,6 @@ extern _kernel_oserror *create_object (_kernel_swi_regs *r, TaskDescriptor *t)
internal->std_value[i] = template->std_value[i];
sprintf (buffer[i], "%d%%",template->std_value[i]);
zap_gadget_string (new_template, ActionButton, Scale_ActionButton_StdValue(i), text, buffer[i], max_text_len);
}
zap_gadget (new_template,NumberRange,Scale_NumberRange_Scale, lower_bound, template->min_value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment