diff options
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index 51a2506..87a7e08 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -842,12 +842,12 @@ void DotNode::writeXML(QTextStream &t,bool isClassGraph) { int p=0; int ni; - while ((ni=edgeInfo->m_label.find("\\n",p))!=-1) + while ((ni=edgeInfo->m_label.find('\n',p))!=-1) { t << " <edgelabel>" << convertToXML(edgeInfo->m_label.mid(p,ni-p)) << "</edgelabel>" << endl; - p=ni+2; + p=ni+1; } t << " <edgelabel>" << convertToXML(edgeInfo->m_label.right(edgeInfo->m_label.length()-p)) |