X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTocBackend.cpp;h=a66b307d5d9e3e7595a42d71847fc904d8f2cc4c;hb=94f0968e9212f24997cfee0d17c6f060210edbc6;hp=ed80366f77810bfcde312259c6de5d032b17d899;hpb=c6c0559be0566c921c279cbf78d51ac4bcca4fcd;p=lyx.git diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index ed80366f77..a66b307d5d 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -25,7 +25,7 @@ #include "ParIterator.h" #include "TextClass.h" -#include "insets/InsetOptArg.h" +#include "insets/InsetArgument.h" #include "support/convert.h" #include "support/debug.h" @@ -142,11 +142,11 @@ bool TocBackend::updateItem(DocIterator const & dit) InsetList::const_iterator end = par.insetList().end(); for (; it != end; ++it) { Inset & inset = *it->inset; - if (inset.lyxCode() == OPTARG_CODE) { + if (inset.lyxCode() == ARG_CODE) { if (!tocstring.empty()) break; Paragraph const & inset_par = - *static_cast(inset).paragraphs().begin(); + *static_cast(inset).paragraphs().begin(); if (!par.labelString().empty()) tocstring = par.labelString() + ' '; tocstring += inset_par.asString(AS_STR_INSETS);