stefan pushed a commit to branch master.

http://git.enlightenment.org/core/evas_generic_loaders.git/commit/?id=26db3fd707e28ab03b69cf9acc5ecd6cf7edaf8a

commit 26db3fd707e28ab03b69cf9acc5ecd6cf7edaf8a
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Thu Nov 26 23:31:45 2015 +0100

    xcf: fix indent for some code parts to match surroundings
    
    The file uses 3 spaces for initial indent while some code blocks have been
    added with two spaces. Purely cosmetic but found while playing around with
    smatch.
---
 src/bin/xcf/main.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c
index 1cef05b..373823b 100644
--- a/src/bin/xcf/main.c
+++ b/src/bin/xcf/main.c
@@ -665,11 +665,11 @@ xcf_load_image(void)
         /* restore the saved position so we'll be ready to
          *  read the next offset. */
         xcf_seek_pos (saved_pos);
-    }
-  /* If we were a Gimp we would now load the user-defined channels here ... */
-  /* Flat-o-rama now :) */
-  flatten_image();
-  return;
+     }
+   /* If we were a Gimp we would now load the user-defined channels here ... */
+   /* Flat-o-rama now :) */
+   flatten_image();
+   return;
 error:
    if (num_successful_elements == 0) goto hard_error;
    fprintf(stderr, "XCF: This file is corrupt!  I have loaded as much\nof it 
as I can, but it is incomplete.\n");
@@ -758,18 +758,18 @@ xcf_load_layer(void)
    int     type;
    char   *name;
 
-  D("Loading one layer ...\n");
-  /* read in the layer width, height and type */
-  image->cp += xcf_read_int32(image->file, (DATA32 *)&width, 1);
-  image->cp += xcf_read_int32(image->file, (DATA32 *)&height, 1);
-  image->cp += xcf_read_int32(image->file, (DATA32 *)&type, 1);
-  image->cp += xcf_read_string(image->file, &name, 1);
-  /* ugly, I know */
-  FREE(name);
-
-  /* create a new layer */
-  layer = new_layer(width, height, type, 255, NORMAL_MODE);
-  if (!layer) return NULL;
+   D("Loading one layer ...\n");
+   /* read in the layer width, height and type */
+   image->cp += xcf_read_int32(image->file, (DATA32 *)&width, 1);
+   image->cp += xcf_read_int32(image->file, (DATA32 *)&height, 1);
+   image->cp += xcf_read_int32(image->file, (DATA32 *)&type, 1);
+   image->cp += xcf_read_string(image->file, &name, 1);
+   /* ugly, I know */
+   FREE(name);
+
+   /* create a new layer */
+   layer = new_layer(width, height, type, 255, NORMAL_MODE);
+   if (!layer) return NULL;
 
    /* read in the layer properties */
    if (!xcf_load_layer_props(layer)) goto error;

-- 


Reply via email to