diff -r d8fccb2cd802 -r 468f4c8d3d5b Orb/Doxygen/src/latexdocvisitor.cpp --- a/Orb/Doxygen/src/latexdocvisitor.cpp Fri Apr 23 20:47:58 2010 +0100 +++ b/Orb/Doxygen/src/latexdocvisitor.cpp Wed Aug 11 14:49:30 2010 +0100 @@ -3,7 +3,7 @@ * * * - * Copyright (C) 1997-2008 by Dimitri van Heesch. + * Copyright (C) 1997-2010 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -185,7 +185,7 @@ m_t << "\\^{" << s->letter() << "}"; break; case DocSymbol::Slash: if (tolower(s->letter())=='o') - m_t << "\\" << s->letter(); + m_t << "{\\" << s->letter() << "}"; else m_t << s->letter(); break; @@ -1360,20 +1360,17 @@ void LatexDocVisitor::writeMscFile(const QString &baseName) { + QString shortName = baseName; + int i; + if ((i=shortName.findRev('/'))!=-1) + { + shortName=shortName.right(shortName.length()-i-1); + } QString outDir = Config_getString("LATEX_OUTPUT"); writeMscGraphFromFile(baseName,outDir,baseName,MSC_EPS); m_t << "\n\\begin{DoxyImageNoCaption}" " \\mbox{\\includegraphics"; - //if (!width.isEmpty()) - //{ - // m_t << "[width=" << width << "]"; - //} - //else if (!height.isEmpty()) - //{ - // m_t << "[height=" << height << "]"; - //} - m_t << "{" << baseName << "}"; - + m_t << "{" << shortName << "}"; m_t << "}\n"; // end mbox m_t << "\\end{DoxyImageNoCaption}\n"; }