1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

remove a double entrance of str_fmt

This commit is contained in:
Lu Wang 2013-04-26 15:19:12 +08:00
parent 63ce9f10b7
commit d5f9c23ec1

View File

@ -109,8 +109,8 @@ void HTMLRenderer::process(PDFDoc *doc)
if(param.split_pages)
{
auto filled_template_filename = str_fmt(param.output_filename.c_str(), i);
auto page_fn = str_fmt("%s/%s", param.dest_dir.c_str(), string((char*)filled_template_filename).c_str());
string filled_template_filename = (char*)str_fmt(param.output_filename.c_str(), i);
auto page_fn = str_fmt("%s/%s", param.dest_dir.c_str(), filled_template_filename.c_str());
f_pages.fs.open((char*)page_fn, ofstream::binary);
if(!f_pages.fs)
throw string("Cannot open ") + (char*)page_fn + " for writing";
@ -198,7 +198,7 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state, XRef * xref)
}
else
{
f_pages.fs << str_fmt("bg%x.png", pageNum);
f_pages.fs << (char*)str_fmt("bg%x.png", pageNum);
}
f_pages.fs << "\"/>";
}