Skip to content

Commit 71a3ca8

Browse files
cmackmilianw
authored andcommitted
fix: escape special symbols in node labels of children, too
Further fixes to #691 continuing the initial fix in fd9f7d1
1 parent fd9f7d1 commit 71a3ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/callgraphgenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void resultsToDot(int height, Direction direction, const Data::Symbol& symbol, c
6262
const auto entry = results.entries[symbol];
6363

6464
auto addNode = [&stream](const QString& id, const QString& label) {
65-
stream << "node" << id << " [label=\"" << label << "\"]\n";
65+
stream << "node" << id << " [label=\"" << label.toHtmlEscaped() << "\"]\n";
6666
};
6767
auto connectNodes = [&stream, direction](const QString& parent, const QString& child) {
6868
if (direction == Direction::Callee) {

0 commit comments

Comments
 (0)