diff options
author | Adrian DC <radian.dc@gmail.com> | 2017-07-07 11:51:51 (GMT) |
---|---|---|
committer | Adrian DC <radian.dc@gmail.com> | 2017-07-07 12:26:03 (GMT) |
commit | c7348b4483ace9b5608fbbe949eab02921eb0e70 (patch) | |
tree | 8b127473c27b00bdc3a1d1f8bb570dd979be89ff /src/dot.cpp | |
parent | dd93324d40773ef8e9d60e1beffd5d3fc59bee62 (diff) | |
download | Doxygen-c7348b4483ace9b5608fbbe949eab02921eb0e70.zip Doxygen-c7348b4483ace9b5608fbbe949eab02921eb0e70.tar.gz Doxygen-c7348b4483ace9b5608fbbe949eab02921eb0e70.tar.bz2 |
dot.cpp: Fix DotGfxHierarchyTable first class node loop
* Upon 'inherits' diagram creation, the first element
(alphabetically last parent name) would use a default
node number 0, equal to the child element, and would
result in a class looping on itself as parent
* A simple test to confirm the issue can be done with the
following lines in a test.h inside an empty project:
// Test first class node loop
class aChildClass : public zParentClass { };
class bChildClass : public yParentClass { };
Change-Id: I7901e5e13d9564747d112e0b8c758d239d43a380
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index 4189748..627989f 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -2477,7 +2477,7 @@ void DotGfxHierarchyTable::addClassList(ClassSDict *cl) } } -DotGfxHierarchyTable::DotGfxHierarchyTable() : m_curNodeNumber(0) +DotGfxHierarchyTable::DotGfxHierarchyTable() : m_curNodeNumber(1) { m_rootNodes = new QList<DotNode>; m_usedNodes = new QDict<DotNode>(1009); |