]> git.lyx.org Git - lyx.git/commitdiff
Initialize number_index and unit_index in isValidGlueLength(). This is now the same...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 10 Mar 2010 16:35:40 +0000 (16:35 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 10 Mar 2010 16:35:40 +0000 (16:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33695 a592a061-630c-0410-9148-cb99ea01b6c8

src/VSpace.cpp

index 46f39bfeaecf8673b08ba2e94a6e19ac91d1865a..da9133a4c090727525e11a413a82550439bd9c92 100644 (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;