mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
17efe15322
commit
5b7eb343ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user