mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #165: Insert > Inline Text latency issues on Flatpak and Appimage packages
This commit is contained in:
@ -683,13 +683,6 @@ void PDFPrecompiledPage::addClip(QPainterPath path)
|
||||
|
||||
void PDFPrecompiledPage::addImage(QImage image)
|
||||
{
|
||||
// Convert the image into format Format_ARGB32_Premultiplied for fast drawing.
|
||||
// If this format is used, then no image conversion is performed while drawing.
|
||||
if (image.format() != QImage::Format_ARGB32_Premultiplied)
|
||||
{
|
||||
image.convertTo(QImage::Format_ARGB32_Premultiplied);
|
||||
}
|
||||
|
||||
m_instructions.emplace_back(InstructionType::DrawImage, m_images.size());
|
||||
m_images.emplace_back(qMove(image));
|
||||
}
|
||||
|
Reference in New Issue
Block a user