Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/DoxyXmlParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,14 @@ class DoxyXmlParser: public xml::ExpatParser<DoxyXmlParser> {
const char** attributes
) {
T* type = AXL_MEM_NEW(T);
TypeStackEntry entry = { type, 0 };
m_typeStack.append(entry);
return type->create(this, context, name, attributes);
if (type->create(this, context, name, attributes)) {
TypeStackEntry entry = { type, 0 };
m_typeStack.append(entry);
return true;
}
else {
return false;
}
}

Compound*
Expand Down
5 changes: 4 additions & 1 deletion src/DoxyXmlType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,6 @@ DocImageType::create(
m_parser = parser;
m_imageBlock = AXL_MEM_NEW(DocImageBlock);
m_imageBlock->m_blockKind = name;
list->insertTail(m_imageBlock);

while (*attributes) {
AttrKind attrKind = AttrKindMap::findValue(attributes[0], AttrKind_Undefined);
Expand All @@ -1267,6 +1266,10 @@ DocImageType::create(
attributes += 2;
}

if (m_imageBlock->m_imageKind == ImageKind_Html) {
list->insertTail(m_imageBlock);
}

return true;
}

Expand Down