aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 0f3e5461b..ea86ebe0d 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -2657,7 +2657,7 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra
if (clazz->isInterface() || !clazz->typeEntry()->generateCode())
continue;
- if (clazz->enclosingClass())
+ if (clazz->enclosingClass() && map.contains(clazz->enclosingClass()->name()))
graph.addEdge(map[clazz->enclosingClass()->name()], map[clazz->name()]);
foreach(AbstractMetaClass* baseClass, getBaseClasses(clazz))