]> git.lyx.org Git - features.git/commitdiff
fix endless loop
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 3 Dec 2010 19:27:35 +0000 (19:27 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 3 Dec 2010 19:27:35 +0000 (19:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36695 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index d96dc1935018ca818b4a3ec0229be803355146ea..21af97cf6c80decdd438fbfab7d4707b61df1bf5 100644 (file)
@@ -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"