aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-sorted-variable.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-06 13:50:12 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-06 13:50:12 +0800
commit06978bc7368680efabec6a2cde14c74ca5201d04 (patch)
tree9b01fb6ea232dbb144e7ae5687a004c98bf1272b /widgets/table/e-table-sorted-variable.c
parentce74cc7bb1d1a3f27d93dfa2842a9f13e461714f (diff)
downloadgsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.gz
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.zst
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.zip
Added a right click signal.
2000-06-06 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h, e-table.c, e-table.h: Added a right click signal. * e-table-sorted-variable.c: Fixed a buffer overrun. svn path=/trunk/; revision=3437
Diffstat (limited to 'widgets/table/e-table-sorted-variable.c')
-rw-r--r--widgets/table/e-table-sorted-variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index 8c7e49cbbd..f7719df3c1 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -153,7 +153,7 @@ etsv_add (ETableSubsetVariable *etssv,
i = etss->n_map;
if (etsv->sort_idle_id == 0) {
i = 0;
- while (etsv_compare(etsv, etss->map_table[i], row) < 0)
+ while (i < etss->n_map && etsv_compare(etsv, etss->map_table[i], row) < 0)
i++;
memmove(etss->map_table + i + 1, etss->map_table + i, (etss->n_map - i) * sizeof(int));
}