]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
[lyx.git] / src / insets / InsetInclude.cpp
index 87741831e631c62d4bf35a04e645d8fb4e356a6c..c0f10af568b3508656ae8a40404674ace52596c5 100644 (file)
@@ -304,7 +304,7 @@ bool InsetInclude::getStatus(Cursor & cur, FuncRequest const & cmd,
 
        case LFUN_INSET_EDIT:
        case LFUN_INSET_MODIFY:
-               flag.enabled(true);
+               flag.setEnabled(true);
                return true;
 
        default:
@@ -934,7 +934,7 @@ void InsetInclude::updateLabels(ParIterator const & it)
 
        InsetListingsParams const par(to_utf8(params()["lstparams"]));
        if (par.getParamValue("caption").empty()) {
-               listings_label_.clear();
+               listings_label_ = buffer().B_("Program Listing");
                return;
        }
        Buffer const & master = *buffer().masterBuffer();