This commit is contained in:
Kulikova Svetlana
2022-03-10 17:55:58 +03:00
parent 8ef62fd670
commit a18d19b6f7
3 changed files with 22 additions and 45 deletions

View File

@ -275,14 +275,8 @@ BYTE* CDjVuFileImplementation::GetInfo()
sRes += "x";
version = std::to_string(nH);
sRes += version.substr(0, version.length() - 4);
sRes += "\",";
sRes += "\"NumberOfPages\":";
sRes += "\",\"NumberOfPages\":";
sRes += std::to_string(GetPagesCount());
sRes += ",";
if (sRes[sRes.size() - 1] == ',')
sRes.pop_back();
sRes += "}";
oRes.WriteString((BYTE*)sRes.c_str(), sRes.length());