From 286f6d8ed325ca5f726e6ba5fad86fb834d51c16 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 May 2016 14:46:56 +0000 Subject: fix for wrongly named variables git-svn-id: http://svn.miranda-ng.org/main/trunk@16865 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcmsgs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clcmsgs.cpp') diff --git a/plugins/Clist_modern/src/modern_clcmsgs.cpp b/plugins/Clist_modern/src/modern_clcmsgs.cpp index 2b889619b8..0edbb82ae8 100644 --- a/plugins/Clist_modern/src/modern_clcmsgs.cpp +++ b/plugins/Clist_modern/src/modern_clcmsgs.cpp @@ -184,22 +184,22 @@ LRESULT cli_ProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wP for (tgroup = group; tgroup; tgroup = tgroup->parent) pcli->pfnSetGroupExpand(hwnd, dat, tgroup, 1); - if (!contact->isSubcontact) { + if (!contact->nSubContacts) { index = List_IndexOf((SortedList*)&group->cl, contact); mainindex = index; } else { index = List_IndexOf((SortedList*)&group->cl, contact->subcontacts); mainindex = index; - index += contact->isSubcontact; + index += contact->nSubContacts; } BYTE k = db_get_b(NULL, "CLC", "MetaExpanding", SETTING_METAEXPANDING_DEFAULT); if (k) { for (int i = 0; i < mainindex; i++) { ClcContact *tempCont = group->cl.items[i]; - if (tempCont->type == CLCIT_CONTACT && tempCont->SubAllocated && tempCont->SubExpanded) - index += tempCont->SubAllocated; + if (tempCont->type == CLCIT_CONTACT && tempCont->iSubAllocated && tempCont->bSubExpanded) + index += tempCont->iSubAllocated; } } -- cgit v1.2.3