Commit 038db11f authored by Nikita Sirgienko's avatar Nikita Sirgienko

Revert 4cd564b3

parent 4cd564b3
......@@ -173,11 +173,12 @@ void MathRenderTask::run()
QFile::remove(pathWithoutExtension + QLatin1String(".log"));
QFile::remove(pathWithoutExtension + QLatin1String(".aux"));
// We shouldn't remove pdf file, because this file used in future in an another parts of Cantor
// For example, this pdf will copied into .cws file on save
const QString& pdfFileName = pathWithoutExtension + QLatin1String(".pdf");
bool success; QString errorMessage; QSizeF size;
const auto& data = renderPdfToFormat(pdfFileName, m_code, uuid, m_type, m_scale, m_highResolution, &success, &errorMessage);
result->successful = success;
result->errorMessage = errorMessage;
if (success == false)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment