From ab5c1c7408c1ab1b3c4001fe52dcfa7d1773594b Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 10 Mar 2010 16:35:40 +0000 Subject: [PATCH] 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 --- src/VSpace.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;