DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1991
Version: -current


Using FLTK 1.1.9 under MinGW/MSys on Windows XP or Vista.

I recently noticed that when I set the initial value of a Spinner to zero
in the fluid properties dialogue, the next time I reloaded the .fl file,
fluid set the initial value to 1 instead of zero.
In addition, the code generated by fluid does not initialise the initial
value to zero if you select Write Code before Quitting having previously
set the initial value to zero.

I investigated the problem and found the problem traced to lines 2223 and
2388 in file Fl_Widget_Type.cxx
In both these lines, the Value of the widget is not written to either the
fluid file or C-source file if the value is zero.

I replaced the if statement in the offending lines with:-

 if ((v->value()>= v->minimum()) && (v->value()<= v->maximum()))

and everything seems to work now.

Have I missed anything significant or is it alright to leave it like this?
Should I have used "f->minimum" and "f-maximum" ?


Link: http://www.fltk.org/str.php?L1991
Version: -current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to