Skip to content

Commit

Permalink
Merge pull request #1070 from vktr/fix/label-name-conversion
Browse files Browse the repository at this point in the history
Convert label name to wide string when adding to list
  • Loading branch information
vktr committed Dec 19, 2020
2 parents 73e30eb + 9c59cb3 commit b0e6338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picotorrent/ui/dialogs/preferenceslabelspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ PreferencesLabelsPage::PreferencesLabelsPage(wxWindow* parent, std::shared_ptr<C
for (auto const& label : m_cfg->GetLabels())
{
int row = m_labelsList->GetItemCount();
m_labelsList->InsertItem(row, label.name);
m_labelsList->InsertItem(row, Utils::toStdWString(label.name));
m_labelsList->SetItemPtrData(row, reinterpret_cast<wxUIntPtr>(new Configuration::Label(label)));
}

Expand Down

0 comments on commit b0e6338

Please sign in to comment.