From ee9511f52c3ef9a2f5939b55fe642ce07e8a845b Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sun, 1 Jun 2008 18:23:22 +0000 Subject: [PATCH] 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 --- src/insets/InsetInclude.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index fee3bc2291..c0f10af568 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -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(); -- 2.39.2