]> git.lyx.org Git - features.git/commitdiff
Add warning, save cycles.
authorRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 12:23:36 +0000 (12:23 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 12:23:36 +0000 (12:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36036 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index 4eb7afd9ce47da0e79a1a5576c74006ea890d316..6416560bc476bb33ff9919631eb78f0728b79594 100644 (file)
@@ -911,14 +911,14 @@ def revert_nomencl_cwidth(document):
       j = find_end_of_inset(document.body, i)
       l = find_token(document.body, "width", i, j)
       if l == -1:
-            #Can't find width option for nomencl_print
-            i = j
-            continue
+        document.warning("Can't find width option for nomencl_print!")
+        i = j
+        continue
       width = get_value(document.body, "width", i, j).strip('"')
       del document.body[l]
       add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
       add_to_preamble(document, ["\\setlength{\\nomlabelwidth}{" + width + "}"])
-      i = i + 1
+      i = j - 1
 
 
 def revert_applemac(document):