From 6a01368242c093aabc52120b91f43b6f494081d4 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 18 Dec 2018 15:45:38 +0100 Subject: [PATCH] Fix L_SetPictureSize() just call Upload_infos_page() just before calling Backup_with_new_dimensions() fixes http://pulkomandy.tk/projects/GrafX2/ticket/37 --- src/factory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/factory.c b/src/factory.c index 26d3e982..1eeb1bf2 100644 --- a/src/factory.c +++ b/src/factory.c @@ -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.