Fix #418: don't overwrite main file format if saving only the palette.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1729 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
80c37034f9
commit
c80ec5edbf
@ -1610,7 +1610,6 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
|
||||
if (Main_format != Window_attribute2) {
|
||||
char* savename = (char *)strdup(Selector_filename);
|
||||
int nameLength = strlen(savename);
|
||||
DEBUG(Selector_filename, 42);
|
||||
Main_format = Window_attribute2;
|
||||
// Comme on change de liste, on se place en début de liste:
|
||||
Main_fileselector_position = 0;
|
||||
@ -1940,7 +1939,7 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
|
||||
else // Sinon on essaye de charger ou sauver le fichier
|
||||
{
|
||||
strcpy(context->File_directory,Main_current_directory);
|
||||
if (!load)
|
||||
if (!load && !Get_fileformat(Main_format)->Palette_only)
|
||||
Main_fileformat=Main_format;
|
||||
save_or_load_image=1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user