[evolution-data-server/openismus-work-3-8: 63/112] EBookBackendSqliteDB: Fixed a nasty bug causing descending order to not work properly in some cases.



commit b56f3b0b9addf9088ac1974ec808a315bc4705b4
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Mon Jun 17 15:41:53 2013 +0900

    EBookBackendSqliteDB: Fixed a nasty bug causing descending order to not work properly in some cases.

 .../libedata-book/e-book-backend-sqlitedb.c        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c 
b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index edb9ed8..c2b73d8 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -5426,8 +5426,8 @@ ebsdb_cursor_set_state (EBookBackendSqliteDB *ebsdb,
 
 #define GREATER_OR_LESS(cursor, index, reverse)                                \
        (reverse ?                                                      \
-        (((EbSdbCursor *)cursor)->sort_types[index == E_BOOK_SORT_ASCENDING] ? '>' : '<') : \
-        (((EbSdbCursor *)cursor)->sort_types[index == E_BOOK_SORT_ASCENDING] ? '<' : '>'))
+        (((EbSdbCursor *)cursor)->sort_types[index] == E_BOOK_SORT_ASCENDING ? '<' : '>') : \
+        (((EbSdbCursor *)cursor)->sort_types[index] == E_BOOK_SORT_ASCENDING ? '>' : '<'))
 
 static gchar *
 ebsdb_cursor_constraints (EBookBackendSqliteDB *ebsdb,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]