[gimp] xcf_save_layer(): add comment about where we store the layer mask offset



commit c8b0cb68fa714ae1fc08ce55dddca3b590b3af09
Author: Michael Natterer <mitch gimp org>
Date:   Thu Sep 3 19:08:22 2009 +0200

    xcf_save_layer(): add comment about where we store the layer mask offset

 app/xcf/xcf-save.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index c3b9f73..9666af2 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1153,12 +1153,12 @@ xcf_save_layer (XcfInfo    *info,
   /* write out the layer properties */
   xcf_save_layer_props (info, image, layer, error);
 
-  /* save the current position which is where the hierarchy offset
+  /*  save the current position which is where the hierarchy offset
    *  will be stored.
    */
   saved_pos = info->cp;
 
-  /* write out the layer tile hierarchy */
+  /*  write out the layer tile hierarchy  */
   xcf_check_error (xcf_seek_pos (info, info->cp + 8, error));
   offset = info->cp;
 
@@ -1168,6 +1168,10 @@ xcf_save_layer (XcfInfo    *info,
 
   xcf_check_error (xcf_seek_pos (info, saved_pos, error));
   xcf_write_int32_check_error (info, &offset, 1);
+
+  /*  save the current position which is where the layer mask offset
+   *  will be stored.
+   */
   saved_pos = info->cp;
 
   /* write out the layer mask */



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