diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-30 17:13:40 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-30 17:13:40 (GMT) |
commit | 26b5069ce70ddad043040a06b984beef02b89994 (patch) | |
tree | e8fc87186141ebce1c8547a44d7adcd0ec122e14 /src/dot.cpp | |
parent | e2b4a623decf7c8b4435f742f05d07323ad8d6f2 (diff) | |
download | Doxygen-26b5069ce70ddad043040a06b984beef02b89994.zip Doxygen-26b5069ce70ddad043040a06b984beef02b89994.tar.gz Doxygen-26b5069ce70ddad043040a06b984beef02b89994.tar.bz2 |
Release-1.1.2-20000430
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index f4f5fbc..211ffa3 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -277,6 +277,19 @@ void DotNode::deleteNode(DotNodeList &deletedList) deletedList.append(this); } +static QCString convertLabel(const QCString &l) +{ + QCString result; + const char *p=l.data(); + char c; + while ((c=*p++)) + { + if (c=='\\') result+="\\\\"; + else result+=c; + } + return result; +} + void DotNode::writeBox(QTextStream &t,bool hasNonReachableChildren) { const char *labCol = @@ -284,7 +297,8 @@ void DotNode::writeBox(QTextStream &t,bool hasNonReachableChildren) ( (hasNonReachableChildren) ? "red" : "black" ); - t << " Node" << m_number << " [shape=\"box\",label=\"" << m_label + t << " Node" << m_number << " [shape=\"box\",label=\"" + << convertLabel(m_label) << "\",fontsize=10,height=0.2,width=0.4,fontname=\"doxfont\""; t << ",color=\"" << labCol << "\""; if (m_isRoot) |