From: Georg Baum Date: Fri, 3 Dec 2010 19:27:35 +0000 (+0000) Subject: fix endless loop X-Git-Tag: 2.0.0~1532 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cff0f635cce0b5063ffeb293832df03031f9d4de;p=features.git fix endless loop git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36695 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index d96dc19350..21af97cf6c 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -2392,6 +2392,8 @@ def revert_labeling(document): i = 0 while True: i = find_token_exact(document.body, "\\begin_layout Labeling", i) + if i == -1: + return document.body[i] = "\\begin_layout List"