app: never propagate indexed images to floating point

This commit is contained in:
Michael Natterer 2017-01-26 17:16:16 +01:00
parent a6545cc363
commit db98dc5eaa
1 changed files with 3 additions and 2 deletions
app/file

View File

@ -279,8 +279,9 @@ file_open_image (Gimp *gimp,
{
gimp_image_undo_disable (image);
if (run_mode == GIMP_RUN_INTERACTIVE &&
gimp->config->import_promote_float &&
if (run_mode == GIMP_RUN_INTERACTIVE &&
gimp_image_get_base_type (image) != GIMP_INDEXED &&
gimp->config->import_promote_float &&
file_open_file_proc_is_import (file_proc))
{
GimpPrecision old_precision = gimp_image_get_precision (image);