-
-
-#if 0
-// old code which can be deleted if the new one, now enabled,
-// works satisfyingly (JSpitzm, 11/02/2002)
-// this should definitely be the other way around!!!
-void updateWidgetsFromLength(FL_OBJECT * input, FL_OBJECT * choice,
- LyXLength const & len,
- string const & default_unit)
-{
- if (len.zero())
- updateWidgetsFromLengthString(input, choice,
- string(), default_unit);
- // use input field only for gluelengths
- else if (!isValidLength(len) && !isStrDbl(len)) {
- fl_set_input(input, len.c_str());
- fl_set_choice_text(choice, default_unit.c_str());
- }
- else
- updateWidgetsFromLengthString(input, choice,
- len.asString(), default_unit);
-
-}