From 97846e5e80ca89b0307d740e71cd488895ac42c6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jul 2023 21:08:23 +0300 Subject: let boolean variables inside ClcGroup be boolean --- plugins/Clist_nicer/src/clcpaint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_nicer/src/clcpaint.cpp') diff --git a/plugins/Clist_nicer/src/clcpaint.cpp b/plugins/Clist_nicer/src/clcpaint.cpp index e7f49f900c..71d811fe6c 100644 --- a/plugins/Clist_nicer/src/clcpaint.cpp +++ b/plugins/Clist_nicer/src/clcpaint.cpp @@ -718,7 +718,7 @@ set_bg_l: oldGroupColor = SetTextColor(hdcMem, sempty->TEXTCOLOR); } } - else if (contact->group->expanded) { + else if (contact->group->bExpanded) { if (!sexpanded->IGNORED) { rc.left = sexpanded->MARGIN_LEFT + bg_indent_l; rc.top = y + sexpanded->MARGIN_TOP; @@ -815,7 +815,7 @@ bgskipped: int iImage; if (type == CLCIT_GROUP) - iImage = (contact->group->expanded) ? IMAGE_GROUPOPEN : IMAGE_GROUPSHUT; + iImage = (contact->group->bExpanded) ? IMAGE_GROUPOPEN : IMAGE_GROUPSHUT; else if (type == CLCIT_CONTACT) iImage = contact->iImage; else @@ -1374,7 +1374,7 @@ bgdone: if (cc->cFlags & ECF_AVATAR) g_list_avatars++; - if (cc->type == CLCIT_GROUP && (cc->group->expanded)) { + if (cc->type == CLCIT_GROUP && cc->group->bExpanded) { group = cc->group; group->scanIndex = 0; continue; @@ -1409,7 +1409,7 @@ bgdone: } index++; y += dat->row_heights[line_num]; - if (cc->type == CLCIT_GROUP && (cc->group->expanded)) { + if (cc->type == CLCIT_GROUP && cc->group->bExpanded) { group = cc->group; indent++; group->scanIndex = 0; -- cgit v1.2.3