skip invisible layers
authorStephane Delcroix <stephane@delcroix.org>
Tue, 10 Mar 2009 08:14:52 +0000 (09:14 +0100)
committerStephane Delcroix <stephane@delcroix.org>
Tue, 10 Mar 2009 08:14:52 +0000 (09:14 +0100)
io-xcf.c

index b5c76e8..eda0fee 100644 (file)
--- a/io-xcf.c
+++ b/io-xcf.c
@@ -848,8 +848,10 @@ xcf_image_load_real (FILE *f, XcfContext *context, GError **error)
                                break;
                        case PROP_VISIBLE:
                                fread (data, sizeof(guint32), 1, f);
-                               if (SWAP(data[0]) == 0)
+                               if (SWAP(data[0]) == 0) {
                                        layer->visible = FALSE;
+                                       ignore_layer = TRUE;
+                               }
                                break;
                        case PROP_APPLY_MASK:
                                fread (data, sizeof(guint32), 1, f);