]> git.lyx.org Git - lyx.git/blobdiff - src/support/convert.cpp
Check return value of regex_match instead of looking at first match
[lyx.git] / src / support / convert.cpp
index 58a56479a3abe377761d8a1afae8da3ace6ff322..076c9d7d28cb78ad7d748ba40faeadf0b4dc2458 100644 (file)
@@ -154,6 +154,13 @@ string convert<string>(double d)
 }
 
 
+template<>
+docstring convert<docstring>(double d)
+{
+       return from_ascii(convert<string>(d));
+}
+
+
 template<>
 int convert<int>(string const s)
 {