From 2086684135ccfe7f4c6c6387cbf594903f83f580 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 5 Apr 2007 10:57:14 +0000 Subject: [PATCH] * lyxlayout.C (read): set labelstringappendix_ every time labelstring is set (instead of using this value only as a fallback) (bug 3351) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17729 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxlayout.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lyxlayout.C b/src/lyxlayout.C index b81ea99425..b5f7223c6e 100644 --- a/src/lyxlayout.C +++ b/src/lyxlayout.C @@ -450,8 +450,10 @@ bool LyXLayout::read(LyXLex & lexrc, LyXTextClass const & tclass) break; case LT_LABELSTRING: // label string definition - if (lexrc.next()) + if (lexrc.next()) { labelstring_ = trim(lexrc.getDocString()); + labelstring_appendix_ = labelstring_; + } break; case LT_ENDLABELSTRING: // endlabel string definition @@ -486,8 +488,6 @@ bool LyXLayout::read(LyXLex & lexrc, LyXTextClass const & tclass) } lexrc.popTable(); - if (labelstring_appendix_.empty()) - labelstring_appendix_ = labelstring_; return error; }