diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-03-26 18:52:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-03-26 18:52:22 (GMT) |
commit | 463cf5c8bf92db792652bc1e4ba6b59cb7b17bc2 (patch) | |
tree | 888e1c2b9f5a4b736dacc9a4ec34b94ac3849757 /src/dot.cpp | |
parent | 293f58696c0a5c25e312cd658ed8ddef4049a7b9 (diff) | |
download | Doxygen-463cf5c8bf92db792652bc1e4ba6b59cb7b17bc2.zip Doxygen-463cf5c8bf92db792652bc1e4ba6b59cb7b17bc2.tar.gz Doxygen-463cf5c8bf92db792652bc1e4ba6b59cb7b17bc2.tar.bz2 |
Release-1.1.1-20000326
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index 724c549..ffa6918 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * - * $Id$ + * * * * Copyright (C) 1997-2000 by Dimitri van Heesch. @@ -466,9 +466,15 @@ void DotGfxHierarchyTable::writeGraph(QTextStream &out,const char *path) { QCString baseName; QCString diskName=n->m_url.copy(); - int i=diskName.find('$'); /* should not return -1 */ - ASSERT(i!=-1); - diskName=diskName.right(diskName.length()-i-1); + int i=diskName.find('$'); + if (i!=-1) + { + diskName=diskName.right(diskName.length()-i-1); + } + else /* take the label name as the file name (and strip any template stuff) */ + { + diskName=convertNameToFile(n->m_label); + } baseName.sprintf("inherit_graph_%s",diskName.data()); QCString dotName=baseName+".dot"; QCString gifName=baseName+".gif"; @@ -650,8 +656,10 @@ DotGfxHierarchyTable::DotGfxHierarchyTable() n->colorConnectedNodes(curColor); curColor++; const DotNode *dn=n->findDocNode(); - ASSERT(dn!=0); - if (dn!=0) m_rootSubgraphs->inSort(dn); + if (dn!=0) + m_rootSubgraphs->inSort(dn); + else + m_rootSubgraphs->inSort(n); } } } |