gimp r27176 - in trunk: . plug-ins/file-psd



Author: martinn
Date: Wed Oct  8 18:09:47 2008
New Revision: 27176
URL: http://svn.gnome.org/viewvc/gimp?rev=27176&view=rev

Log:
* plug-ins/file-psd/psd-load.c (add_layers): Decrease scope of
comp_mode and initialize it.


Modified:
   trunk/ChangeLog
   trunk/plug-ins/file-psd/psd-load.c

Modified: trunk/plug-ins/file-psd/psd-load.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-load.c	(original)
+++ trunk/plug-ins/file-psd/psd-load.c	Wed Oct  8 18:09:47 2008
@@ -962,7 +962,6 @@
 {
   PSDchannel          **lyr_chn;
   guchar               *pixels;
-  guint16               comp_mode;
   guint16               alpha_chn;
   guint16               user_mask_chn;
   guint16               layer_channels;
@@ -1056,6 +1055,8 @@
           lyr_chn = g_new (PSDchannel *, lyr_a[lidx]->num_channels);
           for (cidx = 0; cidx < lyr_a[lidx]->num_channels; ++cidx)
             {
+              guint16 comp_mode = PSD_COMP_RAW;
+
               /* Allocate channel record */
               lyr_chn[cidx] = g_malloc (sizeof (PSDchannel) );
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]