From 5b7eb343ec21b3c918fa57c7bdb0f0333967b568 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 15 Feb 2008 09:41:53 +0000 Subject: [PATCH] InsetFoot::updateLabels(): fix potentially dangerous bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetFoot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5