Merge pull request #34 from syncfusion/development
Fixed the issue with temp path contains accent characters.
This commit is contained in:
Коммит
6e1d325453
|
@ -2061,7 +2061,7 @@ void QPdfEnginePrivate::writeTail()
|
|||
"%%%%EOF\n",
|
||||
xrefPositions.size()-1, info, catalog, xrefPositions.last());
|
||||
|
||||
std::string fileName = outputFileName.toStdString();
|
||||
std::string fileName = outputFileName.toLocal8Bit().constData();
|
||||
int lastindex = fileName.find_last_of(".");
|
||||
std::string rawname = fileName.substr(0, lastindex) + ".txt";
|
||||
const char * textFileName = rawname.c_str();
|
||||
|
|
|
@ -976,7 +976,7 @@ void QWebFrame::print(QPrinter *printer) const
|
|||
m_totalPageLayoutSize = IntRect(m_totalPageLayoutSize.x(), m_totalPageLayoutSize.y(), m_totalPageLayoutSize.width(), elementBounds.height());
|
||||
}
|
||||
QString sc = m_str;
|
||||
std::string filePathString = sc.toStdString();
|
||||
std::string filePathString = sc.toLocal8Bit().constData();
|
||||
const char * filePath = filePathString.c_str();
|
||||
FILE * pFile;
|
||||
pFile = fopen (filePath,"a+");
|
||||
|
|
Загрузка…
Ссылка в новой задаче