From a58c2446e7bf528b2a0119229a314cb6f6c22191 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 2 Feb 2001 04:06:40 +0000 Subject: Dont overwrite the end of our bitmap array. 2001-02-02 Not Zed * e-table-selection-model.c (model_row_deleted): Dont overwrite the end of our bitmap array. svn path=/trunk/; revision=7944 --- widgets/table/e-table-selection-model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index 0f2c9cd7e4..e844ec1ae4 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -107,7 +107,8 @@ model_row_deleted(ETableModel *etm, int row, ETableSelectionModel *etsm) for (i = box + 1; i < last; i++) { etsm->selection[i] = (etsm->selection[i] << 1) | (etsm->selection[i + 1] >> 31); } - etsm->selection[i] = etsm->selection[i] << 1; + /* this over-runs our memory! */ + /*etsm->selection[i] = etsm->selection[i] << 1; */ } etsm->row_count --; /* Remove the last word if not needed. */ -- cgit