]> git.lyx.org Git - lyx.git/blobdiff - src/lengthcommon.C
gettext support, fast_start option, scons all, mingw bug fix and some cleanup for...
[lyx.git] / src / lengthcommon.C
index 89ff7e1a555a7101a3564995924286f43cea56aa..fc1ea7017c7aa611fff4d6e74c560f0b60d3852f 100644 (file)
@@ -29,7 +29,7 @@ char const * const unit_name[] = {
        "text%",  "col%", "page%", "line%",
        "theight%", "pheight%", "" };
 
-int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]));
+int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]) - 1);
 
 // the latex units
 char const * const unit_name_ltx[] = {