prevent endless loop

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9155 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2004-11-01 10:33:58 +00:00
parent 8f7d6cae4e
commit 02e9655770
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-11-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text2.C (setCounter): prevent endless loop
2004-11-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* exporter.C (copyFile): use the mover instead of support::copy()

View File

@ -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
}