Fix preventing show crashing with newer graphviz

This commit is contained in:
Miodrag Milanovic 2022-06-03 08:38:16 +02:00
parent 1eb1bc441b
commit d88a5d26b7
1 changed files with 6 additions and 1 deletions

View File

@ -191,7 +191,12 @@ struct ShowWorker
std::string str;
for (char ch : id) {
if (ch == '\\' || ch == '"')
if (ch == '\\') {
// new graphviz have bug with escaping '\'
str += "╲";
continue;
}
if (ch == '"')
str += "\\";
str += ch;
}