]> git.lyx.org Git - features.git/commitdiff
Small bformat fix
authorMartin Vermeer <martin.vermeer@hut.fi>
Fri, 5 Sep 2003 19:20:26 +0000 (19:20 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Fri, 5 Sep 2003 19:20:26 +0000 (19:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7687 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/lstrings.C

index 3e4dc8c8f47afc5cbf8cc54040dcdb52f52dddea..4ab1d5a3351a6de946fa31b3fb3fd5cd3fe035a2 100644 (file)
@@ -1,3 +1,8 @@
+
+2003-09-05  Angus Leeming  <leeming@lyx.org>
+
+       * lstrings.C: small bformat fix
+
 2003-09-05  Angus Leeming  <leeming@lyx.org>
 
        * std_istream.h: new file Just renaming of LIstream.h
index 79464f3123bfd3dd7fafbce2d298e1d5a1d0766c..17b55e00dcaf7c94daf22d2e7aa24aad6be53c1b 100644 (file)
@@ -18,6 +18,7 @@
 #include "debug.h"
 #include "BoostFormat.h"
 #include "lyxlib.h"
+#include "tostr.h"
 
 #include <boost/regex.hpp>
 #include <boost/tokenizer.hpp>
@@ -681,8 +682,8 @@ string bformat(string const & fmt, int arg1, int arg2)
 {
        Assert(contains(fmt, "%1$d"));
        Assert(contains(fmt, "%2$d"));
-       string str = subst(fmt, "%1$d", arg1);
-       str = subst(str, "%2$d", arg2);
+       string str = subst(fmt, "%1$d", tostr(arg1));
+       str = subst(str, "%2$d", tostr(arg2));
        return subst(str, "%%", "%");
 }