diff options
Diffstat (limited to 'e-util/e-bit-array.c')
-rw-r--r-- | e-util/e-bit-array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c index 2a79e1bab2..bb98a3f465 100644 --- a/e-util/e-bit-array.c +++ b/e-util/e-bit-array.c @@ -97,8 +97,8 @@ e_bit_array_delete_real(EBitArray *eba, int row, gboolean move_selection_mode) if ((eba->bit_count & 0x1f) == 0) { eba->data = g_renew(guint32, eba->data, eba->bit_count >> 5); } - if (move_selection_mode && selected) { - e_bit_array_select_single_row (eba, row > 0 ? row - 1 : 0); + if (move_selection_mode && selected && eba->bit_count > 0) { + e_bit_array_select_single_row (eba, row == eba->bit_count ? row - 1 : row); } } } |