summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-10-09 11:32:31 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-10-09 11:32:31 (GMT)
commitf23e59f2543f592bcbc2358c1d51825ab71f88bd (patch)
tree30ada6e8b0dac656322218756ea5f1b41c214830 /src/diagram.cpp
parentd2b8ae16cb99621827f5dd860222c27e629f5a7f (diff)
downloadDoxygen-f23e59f2543f592bcbc2358c1d51825ab71f88bd.zip
Doxygen-f23e59f2543f592bcbc2358c1d51825ab71f88bd.tar.gz
Doxygen-f23e59f2543f592bcbc2358c1d51825ab71f88bd.tar.bz2
Problem with round brackets in PS output
In case we use the doxygen inheritance diagrams in doxygen (i.e. `HAVE_DOT=NO`) for a construct like (based on #7302): ``` template <char C> struct one { }; /// The struct str_040 struct str_040 : one<'('> { }; ``` this will lead to a postscript error (epstopdf) as the `(` (and analogous the `)`) have to be escaped.
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index 08b49ca..2dadc12 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -247,7 +247,7 @@ static void writeVectorBox(FTextStream &t,DiagramItem *di,
float x,float y,bool children=FALSE)
{
if (di->virtualness()==Virtual) t << "dashed\n";
- t << " (" << di->label() << ") " << x << " " << y << " box\n";
+ t << " (" << convertToPSString(di->label()) << ") " << x << " " << y << " box\n";
if (children) t << x << " " << y << " mark\n";
if (di->virtualness()==Virtual) t << "solid\n";
}
@@ -1297,7 +1297,7 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path,
for (;(di=rit.current());++rit)
{
done=di->isInList();
- t << "(" << di->label() << ") cw\n";
+ t << "(" << convertToPSString(di->label()) << ") cw\n";
}
}
QListIterator<DiagramRow> sit(*super);
@@ -1310,7 +1310,7 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path,
for (;(di=rit.current());++rit)
{
done=di->isInList();
- t << "(" << di->label() << ") cw\n";
+ t << "(" << convertToPSString(di->label()) << ") cw\n";
}
}