InsetFoot::updateLabels(): fix potentially dangerous bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-15 09:41:53 +00:00
parent 17efe15322
commit 5b7eb343ec

View File

@ -61,7 +61,7 @@ void InsetFoot::updateLabels(Buffer const & buf, ParIterator const & it)
{ {
TextClass const & tclass = buf.params().getTextClass(); TextClass const & tclass = buf.params().getTextClass();
Counters & cnts = tclass.counters(); Counters & cnts = tclass.counters();
docstring const & foot = from_ascii("footnote"); docstring const foot = from_ascii("footnote");
Paragraph const & outer = it.paragraph(); Paragraph const & outer = it.paragraph();
if (!outer.layout()->intitle && cnts.hasCounter(foot)) { if (!outer.layout()->intitle && cnts.hasCounter(foot)) {
cnts.step(foot); cnts.step(foot);