From da6e2ad2e47bafed517660f496afd1e0bba274ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Jan 2021 20:05:06 +0300 Subject: grrm... --- plugins/Dbx_mdbx/src/dbevents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index e2494a9c00..bcbc8f6b51 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -658,7 +658,8 @@ public: return 0; dbKey = *(const DBEventSortingKey *)key.iov_base; - if (!m_bForward && dbKey.hContact) { + // we could easily move position to the next contact, if it exists + if (!m_bForward && dbKey.hContact != hContact) { if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_PREV) != MDBX_SUCCESS) return 0; -- cgit v1.2.3