summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-04-30 17:13:40 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-04-30 17:13:40 (GMT)
commit3b8b750f05f52572bc72e6e3538345a51d51844a (patch)
treee8fc87186141ebce1c8547a44d7adcd0ec122e14 /src/dot.cpp
parenta790b4aefe37b616ec4563877e01aa5f99447c85 (diff)
downloadDoxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.zip
Doxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.tar.gz
Doxygen-3b8b750f05f52572bc72e6e3538345a51d51844a.tar.bz2
Release-1.1.2-20000430
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp16
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)