From 24598c0ca8f1938fb2e26e54331dad0d0a16ddd5 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 20 Feb 2012 18:46:36 +0000 Subject: [PATCH] Minor changes. --- Library/DialogAbout.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/DialogAbout.cpp b/Library/DialogAbout.cpp index ad2d9437..657a4a34 100644 --- a/Library/DialogAbout.cpp +++ b/Library/DialogAbout.cpp @@ -758,11 +758,11 @@ void CDialogAbout::CTabSkins::UpdateMeasureList(CMeterWindow* meterWindow) lvi.iSubItem = 0; lvi.iItem = 0; + lvi.iGroupId = 0; const std::list& measures = m_SkinWindow->GetMeasures(); std::list::const_iterator j = measures.begin(); for ( ; j != measures.end(); ++j) { - lvi.iGroupId = 0; lvi.pszText = (WCHAR*)(*j)->GetName(); if (lvi.iItem < count) @@ -786,10 +786,10 @@ void CDialogAbout::CTabSkins::UpdateMeasureList(CMeterWindow* meterWindow) ++lvi.iItem; } + lvi.iGroupId = 1; const auto& variables = m_SkinWindow->GetParser().GetVariables(); for (auto iter = variables.cbegin(); iter != variables.cend(); ++iter) { - lvi.iGroupId = 1; lvi.pszText = (WCHAR*)(*iter).first.c_str(); if (lvi.iItem < count) @@ -801,6 +801,7 @@ void CDialogAbout::CTabSkins::UpdateMeasureList(CMeterWindow* meterWindow) ListView_InsertItem(item, &lvi); } + ListView_SetItemText(item, lvi.iItem, 1, L""); ListView_SetItemText(item, lvi.iItem, 2, (WCHAR*)(*iter).second.c_str()); ++lvi.iItem; }