mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
form para crash fix from John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3102 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0e92b177af
commit
cb52251ccf
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -120,8 +120,8 @@ void FormParagraph::build()
|
||||
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...
|
||||
@ -244,8 +244,10 @@ void FormParagraph::apply()
|
||||
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))
|
||||
|
@ -423,8 +423,7 @@ int Combox::peek_event(FL_FORM * form, void * xev)
|
||||
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 ||
|
||||
|
@ -361,16 +361,16 @@ LyXGlueLength::LyXGlueLength (string const & data)
|
||||
{
|
||||
LyXGlueLength tmp(0.0, PT);
|
||||
|
||||
if (!isValidGlueLength (data, &tmp))
|
||||
return; // should raise an exception
|
||||
else {
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user