]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
Fix my breakage. Sorry guys.
[lyx.git] / src / Spacing.C
index bc9ec91ca5c8743a49eb7e5b3bdddfcc7a804058..8846a742ea016f28fc4f3591b1af9ae95e0b92ed 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "Spacing.h"
 #include "support/lstrings.h"
-#include "support/tostr.h"
+#include "support/convert.h"
 
 #include <sstream>
 #include <string>
@@ -51,7 +51,7 @@ double Spacing::getValue() const
 
 void Spacing::set(Spacing::Space sp, float val)
 {
-       set(sp, tostr(val));
+       set(sp, convert<string>(val));
 }
 
 
@@ -60,17 +60,17 @@ void Spacing::set(Spacing::Space sp, string const & val)
        space = sp;
        if (sp == Other) {
                switch (int(strToDbl(val) * 1000 + 0.5)) {
-               case 1000: 
-                       space = Single; 
+               case 1000:
+                       space = Single;
                        break;
-               case 1250: 
-                       space = Onehalf; 
+               case 1250:
+                       space = Onehalf;
                        break;
-               case 1667: 
-                       space = Double; 
+               case 1667:
+                       space = Double;
                        break;
-               default: 
-                       value = val; 
+               default:
+                       value = val;
                        break;
                }
        }