diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-selection-model-array.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index bfc9fb24fe..0199f9cad3 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2006-03-28 Li Yuan <li.yuan@sun.com> + + **Fixes bug #335618 + * e-selection-model-array.c: (e_selection_model_array_delete_rows): + If the row being deleted is the last one, we should change the + selection_start_row. + 2006-03-06 Simon Zheng <simon.zheng@sun.com> Fixes bug #332140 diff --git a/widgets/misc/e-selection-model-array.c b/widgets/misc/e-selection-model-array.c index 07e60a8065..834f473722 100644 --- a/widgets/misc/e-selection-model-array.c +++ b/widgets/misc/e-selection-model-array.c @@ -68,6 +68,7 @@ e_selection_model_array_delete_rows(ESelectionModelArray *esma, int row, int cou if (esma->cursor_row >= e_bit_array_bit_count (esma->eba)) { esma->cursor_row = e_bit_array_bit_count (esma->eba) - 1; + esma->selection_start_row--; } else if (esma->cursor_row < 0) { esma->cursor_row = -1; } |