aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-subset-variable.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-02 01:52:12 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-02 01:52:12 +0800
commit89ec4e5af666be612fe572082e539ebe7ae0efb3 (patch)
treeb7c28be2d73bb1c659e06f696aaf5fcaf6579aac /widgets/table/e-table-subset-variable.c
parent90dabbdb225e6c5be9ee5def817254e3aa65040c (diff)
downloadgsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar.gz
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar.bz2
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar.lz
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar.xz
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.tar.zst
gsoc2013-evolution-89ec4e5af666be612fe572082e539ebe7ae0efb3.zip
Fixed some warnings.
2001-03-01 Christopher James Lahey <clahey@ximian.com> * e-cell-pixbuf.c: Fixed some warnings. * e-table-subset.c, e-table-subset.h: Added e_table_subset_print_debugging. 2001-02-27 Christopher James Lahey <clahey@ximian.com> * e-table-sorted-variable.c: Moved etsv_compare to etsu_compare in e-table-sorting-utils.c. Moved most of the contents of etsv_add to e_table_sorting_utils_insert in e-table-sorting-utils.c and call the function. * e-table-sorted.c: Rewrote ets_proxy_row_changed, ets_proxy_row_inserted, and ets_proxy_row_deleted. * e-table-sorting-utils.c, e-table-sorting-utils.h (etsu_compare, e_table_sorting_utils_insert): Added e_table_sorting_utils_insert. * e-table-subset-variable.c: Changed this implementation to be slightly more consistent with other code. svn path=/trunk/; revision=8453
Diffstat (limited to 'widgets/table/e-table-subset-variable.c')
-rw-r--r--widgets/table/e-table-subset-variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c
index 5c2aea35e6..a60aec1ac8 100644
--- a/widgets/table/e-table-subset-variable.c
+++ b/widgets/table/e-table-subset-variable.c
@@ -32,8 +32,8 @@ etssv_add (ETableSubsetVariable *etssv,
e_table_model_pre_change(etm);
if (etss->n_map + 1 > etssv->n_vals_allocated){
- etss->map_table = g_realloc (etss->map_table, (etssv->n_vals_allocated + INCREMENT_AMOUNT) * sizeof(int));
etssv->n_vals_allocated += INCREMENT_AMOUNT;
+ etss->map_table = g_realloc (etss->map_table, etssv->n_vals_allocated * sizeof(int));
}
etss->map_table[etss->n_map++] = row;