Change inset label from ": filename" to "Program Listing: filename" for listings without caption.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25057 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-06-01 18:23:22 +00:00
parent 772d040c16
commit ee9511f52c

View File

@ -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();