mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed that Measures in About dialog indicates invalid measure value.
This commit is contained in:
parent
b207eb1140
commit
b8c1c77262
@ -781,7 +781,7 @@ void CDialogAbout::CTabMeasures::UpdateMeasureList(LPCTSTR entryName)
|
|||||||
for ( ; j != measures.end(); ++j)
|
for ( ; j != measures.end(); ++j)
|
||||||
{
|
{
|
||||||
const WCHAR* name = (*j)->GetName();
|
const WCHAR* name = (*j)->GetName();
|
||||||
const WCHAR* val = (*j)->GetStats();
|
std::wstring val = (*j)->GetStats();
|
||||||
|
|
||||||
WCHAR buffer[256];
|
WCHAR buffer[256];
|
||||||
double minVal = (*j)->GetMinValue();
|
double minVal = (*j)->GetMinValue();
|
||||||
@ -809,10 +809,7 @@ void CDialogAbout::CTabMeasures::UpdateMeasureList(LPCTSTR entryName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ListView_SetItemText(item, index, 1, (WCHAR*)range.c_str());
|
ListView_SetItemText(item, index, 1, (WCHAR*)range.c_str());
|
||||||
if (val)
|
ListView_SetItemText(item, index, 2, (WCHAR*)val.c_str());
|
||||||
{
|
|
||||||
ListView_SetItemText(item, index, 2, (WCHAR*)val);
|
|
||||||
}
|
|
||||||
++index;
|
++index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user