From c79365b3df4b0df374ad76a7e9f92ac1be04f7f6 Mon Sep 17 00:00:00 2001 From: "Adam D. Moss" Date: Tue, 31 Aug 1999 19:40:00 +0000 Subject: [PATCH] remove workaround --- plug-ins/common/psd.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plug-ins/common/psd.c b/plug-ins/common/psd.c index 19bdc2e7ee..45ebe87beb 100644 --- a/plug-ins/common/psd.c +++ b/plug-ins/common/psd.c @@ -1,5 +1,5 @@ /* - * PSD Plugin version 2.0.3 + * PSD Plugin version 2.0.4 * This GIMP plug-in is designed to load Adobe Photoshop(tm) files (.PSD) * * Adam D. Moss @@ -35,6 +35,9 @@ /* * Revision history: * + * 1999.08.13 / v2.0.4 / Adam D. Moss + * Allowed NULL layer names again, whee. + * * 1999.08.20 / v2.0.3 / Adam D. Moss * Ensure that NULL name does not get passed to gimp_layer_new(), * or it will fail to create the layer and cause problems down @@ -1716,9 +1719,7 @@ load_image(char *name) } layer_ID = gimp_layer_new (image_ID, - psd_image.layer[lnum].name ? - psd_image.layer[lnum].name : - "Unnamed layer", + psd_image.layer[lnum].name, psd_image.layer[lnum].width, psd_image.layer[lnum].height, (numc==1) ? GRAY_IMAGE : GRAYA_IMAGE, @@ -1784,9 +1785,7 @@ load_image(char *name) fprintf(stderr, "YAH1\n"); layer_ID = gimp_layer_new (image_ID, - psd_image.layer[lnum].name ? - psd_image.layer[lnum].name : - "Unnamed layer", + psd_image.layer[lnum].name, psd_image.layer[lnum].width, psd_image.layer[lnum].height, (numc==3) ? RGB_IMAGE : RGBA_IMAGE,