diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-08 00:13:37 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-08 00:13:37 +0800 |
commit | a4a1a93648db15b869ee67a19b7aad1873b5f9c7 (patch) | |
tree | 0db22e3c115edaa5b820ccb390f00cbf4eb0b6d7 /mail | |
parent | f0c10e106c6d47e4817f118ff94555a15dfbed00 (diff) | |
download | gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar.gz gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar.bz2 gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar.lz gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar.xz gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.tar.zst gsoc2013-evolution-a4a1a93648db15b869ee67a19b7aad1873b5f9c7.zip |
Handle a row number of -1 properly.
2000-07-07 Christopher James Lahey <clahey@helixcode.com>
* message-list.c (get_message_info): Handle a row number of -1
properly.
svn path=/trunk/; revision=3947
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/message-list.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 8ba42c5252..441d3f617a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-07-07 Christopher James Lahey <clahey@helixcode.com> + + * message-list.c (get_message_info): Handle a row number of -1 + properly. + 2000-07-06 Dan Winship <danw@helixcode.com> * message-list.c (get_message_info): Map tree model row numbers to diff --git a/mail/message-list.c b/mail/message-list.c index edb919ad4f..0ebf492872 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -103,6 +103,9 @@ get_message_info(MessageList *message_list, gint row) node = e_tree_model_node_at_row (model, row); row = GPOINTER_TO_INT (e_tree_model_node_get_data (model, node)); + if (row == -1) + return NULL; + info = message_list->summary_table->pdata[row]; } |