SnapmaticPicture: update size, width and height for RDR 2
This commit is contained in:
parent
b19cfdee0f
commit
0e6a6ae34a
4 changed files with 26 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue