SnapmaticPicture: update size, width and height for RDR 2

This commit is contained in:
Syping 2023-05-10 15:17:19 +02:00
parent b19cfdee0f
commit 0e6a6ae34a
4 changed files with 26 additions and 16 deletions

View file

@ -793,7 +793,8 @@ void PictureDialog::editSnapmaticImage()
QFile::copy(currentFilePath, backupFileName);
}
if (!smpic->exportPicture(currentFilePath)) {
smpic->setPictureStream(previousPicture);
// TODO: Find a way to cache the image width and height
smpic->setPictureStream(previousPicture, 0, 0);
QMessageBox::warning(this, QApplication::translate("ImageEditorDialog", "Snapmatic Image Editor"), QApplication::translate("ImageEditorDialog", "Patching of Snapmatic Image failed because of I/O Error"));
return;
}