#include "TocBuilder.h"
+#include "DocIterator.h"
#include "TocBackend.h"
#include "support/lassert.h"
stack_.top().is_captioned = true;
} else {
// This is a new entry.
- pop();
// the dit is at the float's level, e.g. for the contextual menu of
// outliner entries
DocIterator captionable_dit = dit;
captionable_dit.pop_back();
pushItem(captionable_dit, s, output_active, true);
(*toc_)[stack_.top().pos].setAction(func);
+ pop();
}
}