John Spray\'s off-by-one-fix for vspace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9235 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2004-11-14 10:20:11 +00:00
parent 41f754c975
commit 77384eb8f6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-11-14 John Spray <spray_john@users.sourceforge.net>
* vspace.C: fix off-by-one-error, related to fix #1682
2004-11-11 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* lengthcommon.C: a more general fix for bug 1682

View File

@ -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];
}