diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-25 06:03:48 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-25 06:03:48 +0800 |
commit | aa9505c5aec5d05fab25116d2425cf27afb58c41 (patch) | |
tree | 6881b05eae6b2f67d9c64cec9436f10a22ced744 /widgets | |
parent | f9d5c373587332aac4fb4e012ad0c99c3880e8bf (diff) | |
download | gsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.tar.gz gsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.tar.zst gsoc2013-evolution-aa9505c5aec5d05fab25116d2425cf27afb58c41.zip |
Check for selection->selection being NULL in
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-table-selection-model.c: Check for selection->selection being
NULL in e_table_selection_model_selected_count.
svn path=/trunk/; revision=5025
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-table/e-table-selection-model.c | 3 | ||||
-rw-r--r-- | widgets/table/e-table-selection-model.c | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 365dfe2a30..1b64dddaea 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,5 +1,10 @@ 2000-08-24 Christopher James Lahey <clahey@helixcode.com> + * e-table-selection-model.c: Check for selection->selection being + NULL in e_table_selection_model_selected_count. + +2000-08-24 Christopher James Lahey <clahey@helixcode.com> + * e-table-item.c: Pay attention to the return value from the click signal. diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c index 9079ce8623..ffe8cfa947 100644 --- a/widgets/e-table/e-table-selection-model.c +++ b/widgets/e-table/e-table-selection-model.c @@ -483,6 +483,9 @@ e_table_selection_model_selected_count (ETableSelectionModel *selection) int i; int last; + if (!selection->selection) + return 0; + count = 0; last = BOX(selection->row_count - 1); diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c index 9079ce8623..ffe8cfa947 100644 --- a/widgets/table/e-table-selection-model.c +++ b/widgets/table/e-table-selection-model.c @@ -483,6 +483,9 @@ e_table_selection_model_selected_count (ETableSelectionModel *selection) int i; int last; + if (!selection->selection) + return 0; + count = 0; last = BOX(selection->row_count - 1); |