Don't use image->attach_points where image->n_attach_points was meant.

2007-09-07  Matthias Clasen  <mclasen@redhat.com>

        * gtk/updateiconcache.c (get_image_meta_data_size): Don't
        use image->attach_points where image->n_attach_points was meant.
        Pointed out by Albert Chin.


svn path=/trunk/; revision=18756
This commit is contained in:
Matthias Clasen 2007-09-07 19:57:33 +00:00 committed by Matthias Clasen
parent e1cf3b525b
commit 1e85985083
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-09-07 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c (get_image_meta_data_size): Don't
use image->attach_points where image->n_attach_points was meant.
Pointed out by Albert Chin.
2007-09-07 Wouter Bolsterlee <wbolster@svn.gnome.org>
* modules/printbackends/cups/gtkcupsutils.c:

View File

@ -971,7 +971,7 @@ get_image_meta_data_size (Image *image)
data->size = 0;
if (data->has_embedded_rect ||
data->attach_points > 0 ||
data->n_attach_points > 0 ||
data->n_display_names > 0)
data->size += 12;
@ -997,11 +997,8 @@ get_image_meta_data_size (Image *image)
* pool in case the same string occurs twice
* during a get_single_node_size() calculation.
*/
//g_print ("adding non-written out string %s\n", data->display_names[i]);
add_string (data->display_names[i], -1);
}
//else
//g_print ("found string %s in pool: %d\n", data->display_names[i], poolv);
}
}