]> git.lyx.org Git - features.git/commitdiff
Avoid processing multiple times the same paragraph when converting latex arguments.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 29 May 2014 09:05:34 +0000 (11:05 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 29 May 2014 09:05:34 +0000 (11:05 +0200)
lib/lyx2lyx/lyx_2_1.py

index a94ef52320a0bbe8741c8f9e25e4d0b3757fcaff..ae95841fa5d35cbf7a44e19a5f5520120467b397 100644 (file)
@@ -1584,7 +1584,7 @@ def convert_latexargs(document):
                     if argnr > allowed_opts and argnr < first_req:
                         argnr = first_req
                 document.body[p] = "\\begin_inset Argument %d" % argnr
-        i += 1
+        i = parend + 1
 
 
 def revert_latexargs(document):