]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Restore XHTML output for InsetListings.
[lyx.git] / src / insets / InsetCaption.cpp
index b5bfbc36fe71e3201a3266613025b78e1bc23907..7f96e35433c894d804b33572fbfef44c474c8666 100644 (file)
@@ -167,6 +167,7 @@ Inset * InsetCaption::editXY(Cursor & cur, int x, int y)
 bool InsetCaption::insetAllowed(InsetCode code) const
 {
        switch (code) {
+       // code that is not allowed in a caption
        case FLOAT_CODE:
        case TABULAR_CODE:
        case WRAP_CODE:
@@ -294,7 +295,7 @@ docstring InsetCaption::getCaptionAsHTML(XHTMLStream & xs,
 }
 
 
-void InsetCaption::updateLabels(ParIterator const & it)
+void InsetCaption::updateLabels(ParIterator const & it, bool out)
 {
        Buffer const & master = *buffer().masterBuffer();
        DocumentClass const & tclass = master.params().documentClass();
@@ -329,7 +330,7 @@ void InsetCaption::updateLabels(ParIterator const & it)
        }
 
        // Do the real work now.
-       InsetText::updateLabels(it);
+       InsetText::updateLabels(it, out);
 }