Fix for start with feature on linux platform

This commit is contained in:
Filip Sykala - NTB T15p 2023-01-18 09:18:48 +01:00
parent 96519bf259
commit 4d108d84a2

View File

@ -1982,7 +1982,10 @@ void GLGizmoEmboss::draw_font_list()
size_t index = &face - &m_face_names.faces.front();
std::string name(face.wx_name.ToUTF8().data());
std::transform(name.begin(), name.end(), name.begin(), ::toupper);
m_face_names.hide[index] = !name._Starts_with(m_face_names.search);
// It should use C++ 20 feature https://en.cppreference.com/w/cpp/string/basic_string/starts_with
bool start_with = boost::starts_with(name, m_face_names.search);
m_face_names.hide[index] = !start_with;
}
}
if (!is_popup_open)