[evolution-data-server/sqlite-refactor: 22/22] EBookClient: Fixed e_book_client_cursor_get_contact_alphabetic_index()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/sqlite-refactor: 22/22] EBookClient: Fixed e_book_client_cursor_get_contact_alphabetic_index()
- Date: Fri, 29 Nov 2013 13:10:15 +0000 (UTC)
commit 5be0a9210fc90411cc61ea20b9ad30352b5a5dc5
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Fri Nov 29 22:02:50 2013 +0900
EBookClient: Fixed e_book_client_cursor_get_contact_alphabetic_index()
Fixed the above function to not pass NULL to e_collator_get_index()
addressbook/libebook/e-book-client-cursor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client-cursor.c b/addressbook/libebook/e-book-client-cursor.c
index fd96ad0..58b5960 100644
--- a/addressbook/libebook/e-book-client-cursor.c
+++ b/addressbook/libebook/e-book-client-cursor.c
@@ -2778,7 +2778,7 @@ e_book_client_cursor_get_contact_alphabetic_index (EBookClientCursor *cursor,
*/
field = e_contact_field_id (priv->sort_fields[0]);
value = e_contact_get_const (contact, field);
- index = e_collator_get_index (priv->collator, value);
+ index = e_collator_get_index (priv->collator, value ? value : "");
}
return index;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]