Small bformat fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7687 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-09-05 19:20:26 +00:00
parent f239801ae3
commit 7ca0c9d069
2 changed files with 8 additions and 2 deletions

View 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

View 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, "%%", "%");
}