From: Vincent van Ravesteijn Date: Wed, 10 Mar 2010 16:35:40 +0000 (+0000) Subject: Initialize number_index and unit_index in isValidGlueLength(). This is now the same... X-Git-Tag: 2.0.0~3845 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ab5c1c7408c1ab1b3c4001fe52dcfa7d1773594b;p=lyx.git 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 --- diff --git a/src/VSpace.cpp b/src/VSpace.cpp index 46f39bfeae..da9133a4c0 100644 --- a/src/VSpace.cpp +++ b/src/VSpace.cpp @@ -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;