Escape ## in name of style in imgui visualization(issue 61)

This commit is contained in:
Filip Sykala - NTB T15p 2022-09-21 14:53:53 +02:00
parent 6e15149e7a
commit 3bd557b177
4 changed files with 24 additions and 3 deletions
src/slic3r/GUI/Gizmos

View file

@ -1778,7 +1778,8 @@ void GLGizmoEmboss::draw_style_list() {
std::string &trunc_name = m_style_manager.get_truncated_name();
if (trunc_name.empty()) {
// generate trunc name
const std::string &current_name = actual_style.name;
std::string current_name = actual_style.name;
ImGuiWrapper::escape_double_hash(current_name);
trunc_name = ImGuiWrapper::trunc(current_name, max_style_name_width);
}