Skip to content

Commit 82cc431

Browse files
committed
修正重构导致主窗口中不显示的标签文本的皮肤无法显示所有信息的问题
1 parent bd364ff commit 82cc431

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

TrafficMonitor/SkinFile.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,11 @@ void CSkinFile::DrawItemsInfo(IDrawCommon& drawer, Layout& layout, CFont& font)
600600
{
601601
//获取每个项目显示的文本和数值文本
602602
std::map<DisplayItem, DrawStr> map_str;
603-
if (!m_layout_info.no_label)
603+
for (const auto& display_item : AllDisplayItems)
604604
{
605-
for (const auto& display_item : AllDisplayItems)
606-
{
605+
if (!m_layout_info.no_label)
607606
map_str[display_item].label = theApp.m_main_wnd_data.disp_str.GetConst(display_item).c_str();
608-
map_str[display_item].value = CommonDisplayItem(display_item).GetItemValueText(true);
609-
}
607+
map_str[display_item].value = CommonDisplayItem(display_item).GetItemValueText(true);
610608
}
611609

612610
//获取文本颜色

0 commit comments

Comments
 (0)