diff options
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/template.cpp b/src/template.cpp index 2590486..64d3523 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -2075,7 +2075,14 @@ void TemplateContextImpl::addIndexEntry(const QCString &indexName,const QValueLi { entry->set((*it).key,(*it).value); } + if (list->count()>0) + { + TemplateStruct *lastEntry = dynamic_cast<TemplateStruct*>(list->at(list->count()-1).toStruct()); + lastEntry->set("last",false); + } entry->set("is_leaf_node",true); + entry->set("first",list->count()==0); + entry->set("last",true); stack->push(new TemplateVariant(entry)); list->append(entry); } |