]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
fix build, thesaurus
[lyx.git] / src / Spacing.C
index 3d39cf4e326ec75538fb0f59e830edee3782d019..30dd365a8f9696bff178414e6aea46d11375e96b 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 using std::ios;
 using std::ostream;
 
-/// how can I put this inside of Spacing (class)
-static
-char const * spacing_string[] = {"single", "onehalf", "double", "other"};
-
-
+string const Spacing::spacing_string[]
+       = {"single", "onehalf", "double", "other"};
 float Spacing::getValue() const 
 {
        switch (space) {
@@ -55,7 +53,7 @@ void Spacing::set(Spacing::Space sp, float val)
 
 void Spacing::set(Spacing::Space sp, string const & val)
 {
-       float fval;
+       float fval = 0.0;
        istringstream istr(val.c_str());
        istr >> fval;
        set(sp, fval);