[gimp] Issue 2206: Error message when opening "MULTICHANNEL" PSD...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue 2206: Error message when opening "MULTICHANNEL" PSD...
- Date: Fri, 6 Sep 2019 15:25:53 +0000 (UTC)
commit 0a1e9d1190c4d2d2b2e0139c55e31cf6543c7d46
Author: Massimo Valentini <mvalentini335 gmail com>
Date: Fri Jul 26 13:39:32 2019 +0200
Issue 2206: Error message when opening "MULTICHANNEL" PSD...
...files (file attached)
plug-ins/file-psd/psd-load.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plug-ins/file-psd/psd-load.c b/plug-ins/file-psd/psd-load.c
index 333842c3a3..839293e075 100644
--- a/plug-ins/file-psd/psd-load.c
+++ b/plug-ins/file-psd/psd-load.c
@@ -328,6 +328,7 @@ read_header_block (PSDimage *img_a,
&& img_a->color_mode != PSD_GRAYSCALE
&& img_a->color_mode != PSD_INDEXED
&& img_a->color_mode != PSD_RGB
+ && img_a->color_mode != PSD_MULTICHANNEL
&& img_a->color_mode != PSD_DUOTONE)
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
@@ -982,6 +983,7 @@ create_gimp_image (PSDimage *img_a,
switch (img_a->color_mode)
{
+ case PSD_MULTICHANNEL:
case PSD_GRAYSCALE:
case PSD_DUOTONE:
img_a->base_type = GIMP_GRAY;
@@ -1721,6 +1723,7 @@ add_merged_image (GimpImage *image,
bps++;
if ((img_a->color_mode == PSD_BITMAP ||
+ img_a->color_mode == PSD_MULTICHANNEL ||
img_a->color_mode == PSD_GRAYSCALE ||
img_a->color_mode == PSD_DUOTONE ||
img_a->color_mode == PSD_INDEXED) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]