mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
f239801ae3
commit
7ca0c9d069
@ -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
|
||||
|
@ -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, "%%", "%");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user