Commit 0a1285fd authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Mukund Sivaraman
Browse files

small fix to the previous commit in how layers are skipped.

2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: small fix to the previous commit
        in how layers are skipped.


svn path=/trunk/; revision=22770
parent a8ab7fad
2007-06-13 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/tiff-load.c: small fix to the previous commit
in how layers are skipped.
2007-06-13 Mukund Sivaraman <muks@mukund.org>
 
* plug-ins/common/tiff-load.c: don't load any layers from a TIFF
......@@ -491,7 +491,7 @@ load_image (const gchar *filename,
gboolean alpha;
gint image = 0, image_type = GIMP_RGB;
gint layer, layer_type = GIMP_RGB_IMAGE;
gint first_layer_type = GIMP_RGB_IMAGE;
gint first_image_type = GIMP_RGB;
float layer_offset_x = 0.0;
float layer_offset_y = 0.0;
gint layer_offset_x_pixel = 0;
......@@ -681,8 +681,8 @@ load_image (const gchar *filename,
if (target == GIMP_PAGE_SELECTOR_TARGET_LAYERS)
{
if (li == 0)
first_layer_type = layer_type;
else if (layer_type != first_layer_type)
first_image_type = image_type;
else if (image_type != first_image_type)
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment