From: Abdelrazak Younes Date: Fri, 15 Feb 2008 09:41:53 +0000 (+0000) Subject: InsetFoot::updateLabels(): fix potentially dangerous bug. X-Git-Tag: 1.6.10~6255 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5b7eb343ec21b3c918fa57c7bdb0f0333967b568;p=features.git InsetFoot::updateLabels(): fix potentially dangerous bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp index cfc902a21a..cecaf0f695 100644 --- a/src/insets/InsetFoot.cpp +++ b/src/insets/InsetFoot.cpp @@ -61,7 +61,7 @@ void InsetFoot::updateLabels(Buffer const & buf, ParIterator const & it) { TextClass const & tclass = buf.params().getTextClass(); Counters & cnts = tclass.counters(); - docstring const & foot = from_ascii("footnote"); + docstring const foot = from_ascii("footnote"); Paragraph const & outer = it.paragraph(); if (!outer.layout()->intitle && cnts.hasCounter(foot)) { cnts.step(foot);