> > - int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0])); > > + int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]) -
Attached patch accounts for this change in stringFromUnit, committing. John
Index: vspace.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/vspace.C,v retrieving revision 1.81 diff -u -p -r1.81 vspace.C --- vspace.C 3 Apr 2004 08:37:08 -0000 1.81 +++ vspace.C 14 Nov 2004 01:34:00 -0000 @@ -193,7 +193,7 @@ LaTeXLength table[] = { const char * stringFromUnit(int unit) { - if (unit < 0 || unit >= num_units) + if (unit < 0 || unit > num_units) return 0; return unit_name[unit]; }