From 02e965577028c456cdc86e3a3c2389c17edcd3df Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 1 Nov 2004 10:33:58 +0000 Subject: [PATCH] prevent endless loop git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9155 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/text2.C | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 543c5d7a85..295e304a9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-11-01 Georg Baum + + * text2.C (setCounter): prevent endless loop + 2004-11-01 Georg Baum * exporter.C (copyFile): use the mover instead of support::copy() diff --git a/src/text2.C b/src/text2.C index 33c31c8217..80517c9934 100644 --- a/src/text2.C +++ b/src/text2.C @@ -831,7 +831,7 @@ void LyXText::setCounter(Buffer const & buf, par_type pit) #if 0 /* I think this code is supposed to be useful when one has a caption * in a minipage in a figure inset. We need to go up to be able to see - * that the caption sould use "Figure" as label + * that the caption should use "Figure" as label */ else { Paragraph const * owner = &ownerPar(buf, in); @@ -840,6 +840,8 @@ void LyXText::setCounter(Buffer const & buf, par_type pit) if (&pars_[tmppit] == owner) break; } +#else + ++tmppit; #endif } -- 2.39.5