]> 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)
committerRichard Heck <rgheck@lyx.org>
Thu, 29 May 2014 15:24:53 +0000 (11:24 -0400)
(cherry picked from commit 00802019771bd1b9779d3b39899089abfc38201f)

lib/lyx2lyx/lyx_2_1.py

index eccf522edf31ff2aef40858a6d2632dca6c6b6a9..4dab15b06bebb914627cb4cef73f7af1615029d1 100644 (file)
@@ -1583,7 +1583,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):