Skip to content

Commit

Permalink
UnsavedChangesDialog: fix wxString casts
Browse files Browse the repository at this point in the history
similar instance: 08388d3

related to: #5752
  • Loading branch information
pmjdebruijn authored and lukasmatena committed Feb 14, 2021
1 parent 9c568a5 commit b75830d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/UnsavedChangesDialog.cpp
Expand Up @@ -201,9 +201,9 @@ void ModelNode::UpdateIcons()
{
// update icons for the colors, if any exists
if (!m_old_color.IsEmpty())
m_old_color_bmp = get_bitmap(m_toggle ? m_old_color : grey.c_str());
m_old_color_bmp = get_bitmap(m_toggle ? m_old_color : wxString::FromUTF8(grey.c_str()));
if (!m_new_color.IsEmpty())
m_new_color_bmp = get_bitmap(m_toggle ? m_new_color : grey.c_str());
m_new_color_bmp = get_bitmap(m_toggle ? m_new_color : wxString::FromUTF8(grey.c_str()));

// update main icon, if any exists
if (m_icon_name.empty())
Expand Down

0 comments on commit b75830d

Please sign in to comment.