]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / Spacing.C
index 3d39cf4e326ec75538fb0f59e830edee3782d019..90d73d52f7ed9b7786b20fc9269d3a9471bfc3cc 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.
  *
  * ====================================================== */
 
@@ -22,8 +22,11 @@ using std::ios;
 using std::ostream;
 
 /// how can I put this inside of Spacing (class)
-static
-char const * spacing_string[] = {"single", "onehalf", "double", "other"};
+namespace {
+
+char const * const spacing_string[] = {"single", "onehalf", "double", "other"};
+
+} // namespace anon
 
 
 float Spacing::getValue() const 
@@ -55,7 +58,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);