+2001-11-26 John Levon <moz@compsoc.man.ac.uk>
+
+ * vspace.C: initialise lyxgluelength on failure
+
2001-11-28 Allan Rae <rae@lyx.org>
* text.C (paintLastRow): g++-2.95.3 and others don't like variable
+2001-11-23 John Levon <moz@compsoc.man.ac.uk>
+
+ * FormParagraph.C: allow signed space above/below, actually
+ use space below units
+
2001-11-04 John Levon <moz@compsoc.man.ac.uk>
* FormToc.C: fixes to make floatlists work
fl_set_input_return(dialog_->input_labelwidth, FL_RETURN_CHANGED);
fl_set_input_return(dialog_->input_linespacing, FL_RETURN_CHANGED);
fl_set_input_filter(dialog_->input_linespacing, fl_unsigned_float_filter);
- fl_set_input_filter(dialog_->input_space_above, fl_unsigned_float_filter);
- fl_set_input_filter(dialog_->input_space_below, fl_unsigned_float_filter);
+ fl_set_input_filter(dialog_->input_space_above, fl_float_filter);
+ fl_set_input_filter(dialog_->input_space_below, fl_float_filter);
// Create the contents of the unit choices
// Don't include the "%" terms...
space_bottom = VSpace(VSpace::VFILL);
break;
case 7:
- space_bottom =
- VSpace(LyXGlueLength(fl_get_input(dialog_->input_space_below)));
+ string const length =
+ getLengthFromWidgets(dialog_->input_space_below,
+ dialog_->choice_value_space_below);
+ space_bottom = VSpace(LyXGlueLength(length));
break;
}
if (fl_get_button (dialog_->check_space_below))
FL_OBJECT * ob = static_cast<FL_OBJECT *>(form->u_vdata);
Combox * combo = static_cast<Combox*>(ob->u_vdata);
- // I don't know why belowmouse does not work, but it doesn't. (Asger)
- // Are we sure? Please verify. (Lgb)
+ // below mouse does not work like we need it
if (static_cast<XEvent *>(xev)->type == ButtonPress && (
static_cast<XEvent *>(xev)->xbutton.x - ob->x < 0 ||
static_cast<XEvent *>(xev)->xbutton.x - ob->x > ob->w ||
{
LyXGlueLength tmp(0.0, PT);
- if (!isValidGlueLength (data, &tmp))
- return; // should raise an exception
- else {
- val = tmp.val;
- uni = tmp.uni;
- plus_val = tmp.plus_val;
- plus_uni = tmp.plus_uni;
- minus_val = tmp.minus_val;
- minus_uni = tmp.minus_uni;
- }
+ // we should really raise exception here
+ if (!isValidGlueLength(data, &tmp))
+ ;
+
+ val = tmp.val;
+ uni = tmp.uni;
+ plus_val = tmp.plus_val;
+ plus_uni = tmp.plus_uni;
+ minus_val = tmp.minus_val;
+ minus_uni = tmp.minus_uni;
}