Fix L_SetPictureSize()

just call  Upload_infos_page() just before calling Backup_with_new_dimensions()
fixes http://pulkomandy.tk/projects/GrafX2/ticket/37
This commit is contained in:
Thomas Bernard 2018-12-18 15:45:38 +01:00
parent 559085a614
commit 6a01368242
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -394,6 +394,7 @@ int L_SetPictureSize(lua_State* L)
{
// Script has not modified the image/palette yet, so it's not backed up:
// Make a backup that counts as a new Undo step.
Upload_infos_page(&Main);
Backup_with_new_dimensions(w, h);
}
// part of Resize_image() : the pixel copy part.