]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Stupid bug fix.
[lyx.git] / src / insets / InsetCaption.cpp
index 7dca728ee8ff32f441e13d44648ec82255362a5e..b0f4d029817a9fde3df699ae6f7faa8d9c741f56 100644 (file)
@@ -24,7 +24,6 @@
 #include "FloatList.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "support/gettext.h"
 #include "InsetList.h"
 #include "MetricsInfo.h"
 #include "output_latex.h"
@@ -37,6 +36,7 @@
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
 
+#include "support/gettext.h"
 #include "support/lstrings.h"
 
 #include <sstream>
@@ -113,6 +113,9 @@ void InsetCaption::addToToc(DocIterator const & cpit)
        Toc & toc = buffer().tocBackend().toc(type_);
        docstring const str = full_label_ + ". " + text_.getPar(0).asString();
        toc.push_back(TocItem(pit, 0, str));
+
+       // Proceed with the rest of the inset.
+       InsetText::addToToc(cpit);
 }
 
 
@@ -190,7 +193,6 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action) {
 
        case LFUN_BREAK_PARAGRAPH:
-       case LFUN_BREAK_PARAGRAPH_SKIP:
                status.setEnabled(false);
                return true;