Searge-DP / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Saving palette select format for opened file #418

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
 * Load a file (png for example)
 * draw some things
 * select "save as", and save as .pal (palette only format)
 * the filename in the statusbar stays .png
 * draw more things
 * select "save"

File is saved with .png extension, but is actually only the palette in pal 
format. All your drawing is lost !

Formats with 'palette-only' marker shouldn't be useable for the main format.
Limely appeared with some rework of the fileselector...

Original issue reported on code.google.com by pulkoma...@gmail.com on 8 Feb 2011 at 12:29

GoogleCodeExporter commented 8 years ago
Ouch, that's a very severe one.

We will need to check the three main places where format is taken into account:
- context->Format
- Main_backups->Pages->File_format
- Main_file_format

I wondered if we should put in Quit (save and quit) a check if the current file 
is a palette, but the case won't ever happen: No matter how the palette is 
loaded (button or in command-line argument), the "current file" will stay 
noname.gif, in gif format.

Original comment by yrizoud on 8 Feb 2011 at 1:57

GoogleCodeExporter commented 8 years ago
fixed in r1729.

Original comment by pulkoma...@gmail.com on 18 Feb 2011 at 10:48