From: Dekel Tsur Date: Sat, 7 Jul 2001 11:49:07 +0000 (+0000) Subject: Fix counters bug with bibliography layout. X-Git-Tag: 1.6.10~21121 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=823daa40f1b6274455d46002cd29c76577515fde;p=features.git Fix counters bug with bibliography layout. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2200 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index bb518722f4..f756bcff8d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-07-07 Dekel Tsur + + * text2.C (setCounter): Fix counters bug with bibliography layout. + 2001-07-06 Lars Gullik Bjønnes * paragraph_pimpl.C (simpleTeXBlanks): don't go through owner_ for diff --git a/src/text2.C b/src/text2.C index 7121831aac..3dac232451 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1202,13 +1202,8 @@ void LyXText::setCounter(Buffer const * buf, Paragraph * par) const LyXTextClass const & textclass = textclasslist.TextClass(buf->params.textclass); - /* copy the prev-counters to this one, unless this is the start of a - footnote or of a bibliography or the very first paragraph */ - if (par->previous() - && !(textclasslist.Style(buf->params.textclass, - par->previous()->getLayout() - ).labeltype != LABEL_BIBLIO - && layout.labeltype == LABEL_BIBLIO)) { + // copy the prev-counters to this one, unless this is the first paragraph + if (par->previous()) { for (int i = 0; i < 10; ++i) { par->setCounter(i, par->previous()->getFirstCounter(i)); }