pdfworker: Renderer copy constructor missed max mem field

This commit is contained in:
Albert S. 2019-08-12 10:26:16 +02:00
parent 9e0fbcd776
commit ae178e34e5

View File

@ -26,7 +26,6 @@ struct Renderer
this->scaleX = scaleX;
this->scaleY = scaleY;
this->maxTotalPreviewImageMemUsage = maxPreviewImageMemUsage;
}
/*we need this one because std::atomic has none, but this is only a functor for
@ -35,6 +34,7 @@ struct Renderer
{
this->scaleX = o.scaleX;
this->scaleY = o.scaleY;
this->maxTotalPreviewImageMemUsage = o.maxTotalPreviewImageMemUsage;
}
~Renderer()
@ -114,7 +114,6 @@ QFuture<PdfPreview> PdfWorker::generatePreviews(const QVector<SearchResult> path
QSettings setting;
qsizetype maxPreviewImageMemUsage = setting.value("maxpreviewimagesmemory", 1024 * 1024 * 1024).toLongLong();
return QtConcurrent::mapped(previews, Renderer(scaleX, scaleY, maxPreviewImageMemUsage));
}