summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clcmsgs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/clcmsgs.cpp b/src/mir_app/src/clcmsgs.cpp
index 04cadc8fb1..762bbc8965 100644
--- a/src/mir_app/src/clcmsgs.cpp
+++ b/src/mir_app/src/clcmsgs.cpp
@@ -339,11 +339,13 @@ LRESULT fnProcessExternalMessages(HWND hwnd, struct ClcData *dat, UINT msg, WPAR
case CLM_SETEXTRAIMAGE:
if (LOWORD(lParam) < dat->extraColumnsCount) {
- if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, NULL))
+ int bVisible;
+ if (!cli.pfnFindItem(hwnd, dat, wParam, &contact, NULL, &bVisible))
return 0;
contact->iExtraImage[LOWORD(lParam)] = HIWORD(lParam);
- cli.pfnInvalidateRect(hwnd, NULL, FALSE);
+ if (bVisible)
+ cli.pfnInvalidateRect(hwnd, NULL, FALSE);
}
break;