[gimp] app: never propagate indexed images to floating point
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: never propagate indexed images to floating point
- Date: Thu, 26 Jan 2017 16:16:55 +0000 (UTC)
commit db98dc5eaa2c15de0b407d25ea66952861019e29
Author: Michael Natterer <mitch gimp org>
Date: Thu Jan 26 17:16:16 2017 +0100
app: never propagate indexed images to floating point
app/file/file-open.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index d683d72..8aa9ec5 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]