diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 3e4dc8c8f4..4ab1d5a335 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ + +2003-09-05 Angus Leeming + + * lstrings.C: small bformat fix + 2003-09-05 Angus Leeming * std_istream.h: new file Just renaming of LIstream.h diff --git a/src/support/lstrings.C b/src/support/lstrings.C index 79464f3123..17b55e00dc 100644 --- a/src/support/lstrings.C +++ b/src/support/lstrings.C @@ -18,6 +18,7 @@ #include "debug.h" #include "BoostFormat.h" #include "lyxlib.h" +#include "tostr.h" #include #include @@ -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, "%%", "%"); }