From: Martin Vermeer Date: Fri, 5 Sep 2003 19:20:26 +0000 (+0000) Subject: Small bformat fix X-Git-Tag: 1.6.10~16151 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7ca0c9d069d5c3a37d8c46702d83fea863686c27;p=features.git Small bformat fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7687 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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, "%%", "%"); }