Fix issue 377: getbackuppixel doesn't work after image resize

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1611 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2010-09-12 17:15:16 +00:00
parent c53c6415c3
commit 499c9bc943
6 changed files with 177 additions and 50 deletions

View File

@@ -369,8 +369,9 @@ void Button_Transform_menu(void)
old_width=Main_image_width;
old_height=Main_image_height;
Upload_infos_page_main(Main_backups->Pages);
// Allocate a new page
if (Backup_with_new_dimensions(1,Main_backups->Pages->Nb_layers,new_width,new_height))
if (Backup_with_new_dimensions(new_width,new_height))
{
// The new image is allocated, the new dimensions are already updated.