summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-07-15 20:35:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-07-15 20:35:33 +0000
commit66e8bca7ae6dd7936ebc23ddc49d3e3fef9522b4 (patch)
tree81486cfbc627dfd4a61ac0a087f59e27fed96dc7 /src
parentba3469a33a14a198e36fe7a0728e0aff9b465eb3 (diff)
fix for a wrong tooltip text in Options -> Icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@14574 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/skin2opts.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mir_app/src/skin2opts.cpp b/src/mir_app/src/skin2opts.cpp
index e80712e55e..defdcb097b 100644
--- a/src/mir_app/src/skin2opts.cpp
+++ b/src/mir_app/src/skin2opts.cpp
@@ -921,7 +921,6 @@ INT_PTR CALLBACK DlgProcIcoLibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
case IDC_PREVIEW:
if (((LPNMHDR)lParam)->code == LVN_GETINFOTIP) {
- IcolibItem *item;
NMLVGETINFOTIP *pInfoTip = (NMLVGETINFOTIP *)lParam;
LVITEM lvi;
lvi.mask = LVIF_PARAM;
@@ -929,11 +928,11 @@ INT_PTR CALLBACK DlgProcIcoLibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
ListView_GetItem(pInfoTip->hdr.hwndFrom, &lvi);
if (lvi.lParam < iconList.getCount()) {
- item = iconList[lvi.lParam];
+ IcolibItem *item = iconList[lvi.lParam];
if (item->temp_file)
_tcsncpy_s(pInfoTip->pszText, pInfoTip->cchTextMax, item->temp_file, _TRUNCATE);
else if (item->default_file)
- mir_sntprintf(pInfoTip->pszText, pInfoTip->cchTextMax, _T("%s, %d"), item->default_file, item->default_indx);
+ mir_sntprintf(pInfoTip->pszText, pInfoTip->cchTextMax, _T("%s, %d"), item->default_file->file, item->default_indx);
}
}
if (bNeedRebuild) {