From 291b5ec8b25a0cfe9bdf669781f1c69193af6c48 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 17 Apr 2015 11:30:28 +0000 Subject: fixed header bar info git-svn-id: http://svn.miranda-ng.org/main/trunk@12882 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_userinfo.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/Weather/src/weather_userinfo.cpp b/plugins/Weather/src/weather_userinfo.cpp index d773ded4fb..641d37787c 100644 --- a/plugins/Weather/src/weather_userinfo.cpp +++ b/plugins/Weather/src/weather_userinfo.cpp @@ -330,7 +330,7 @@ INT_PTR CALLBACK DlgProcMoreData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l void LoadBriefInfoText(HWND hwndDlg, MCONTACT hContact) { WEATHERINFO winfo; - TCHAR str[4096], str2[4096]; + TCHAR str[4096]; // load weather information from the contact into the WEATHERINFO struct winfo = LoadWeatherInfo(hContact); @@ -343,10 +343,9 @@ void LoadBriefInfoText(HWND hwndDlg, MCONTACT hContact) SetDlgItemText(hwndDlg, IDC_MTEXT, str); GetDisplay(&winfo, opt.bTitle, str); - SetWindowText(hwndDlg, str); + SetWindowText(hwndDlg, winfo.city); GetDisplay(&winfo, _T("%c, %t"), str); - mir_sntprintf(str2, SIZEOF(str2), _T("%s\n%s"), winfo.city, str); - SetDlgItemText(hwndDlg, IDC_HEADERBAR, str2); + SetDlgItemText(hwndDlg, IDC_HEADERBAR, str); } // show brief information dialog -- cgit v1.2.3