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; }