Initialize number_index and unit_index in isValidGlueLength(). This is now the same as in isValidLength(), so I assume it's OK.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33695 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-03-10 16:35:40 +00:00
parent 6200f4852b
commit ab5c1c7408

View File

@ -244,6 +244,8 @@ bool isValidGlueLength(string const & data, GlueLength * result)
}
// end of hack
number_index = unit_index = 1; // entries at index 0 are sentinels
// construct "pattern" from "data"
size_t const pattern_max_size = 20;
string pattern;