From 3794f7c7533a75b26a61a82d29f118d0c362ccf2 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 21 Jan 2010 18:55:02 +0000 Subject: [PATCH] Use cached label. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33136 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_xhtml.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 21894a2941..eb21773e31 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -699,7 +699,7 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf, openItemTag(xs, style); if (par == pbegin && style.htmllabeltag() != "NONE") { docstring const lbl = - pbegin->expandLabel(style, buf.params()); + pbegin->params().labelString(); if (!lbl.empty()) { openLabelTag(xs, style); xs << lbl; @@ -721,7 +721,7 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf, else if (style.labeltype != LABEL_NO_LABEL && style.htmllabeltag() != "NONE") { openLabelTag(xs, style); - xs << par->expandLabel(style, buf.params()); + xs << par->params().labelString(); closeLabelTag(xs, style); xs.cr(); } @@ -794,7 +794,7 @@ void makeCommand(Buffer const & buf, // FIXME Probably need to account for LABEL_MANUAL if (style.labeltype != LABEL_NO_LABEL) { openLabelTag(xs, style); - xs << pbegin->expandLabel(style, buf.params()); + xs << pbegin->params().labelString(); closeLabelTag(xs, style); // Otherwise the label might run together with the text xs << from_ascii(" "); -- 2.39.2