]> git.lyx.org Git - features.git/commitdiff
InsetFoot::updateLabels(): fix potentially dangerous bug.
authorAbdelrazak Younes <younes@lyx.org>
Fri, 15 Feb 2008 09:41:53 +0000 (09:41 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 15 Feb 2008 09:41:53 +0000 (09:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetFoot.cpp

index cfc902a21a34b0f0aacd72ad04329e23e1bd2c28..cecaf0f695e17ce78289acdfec08a07c55d7672a 100644 (file)
@@ -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);