]> git.lyx.org Git - lyx.git/commitdiff
lyx2lyx/lyx_1_6.py: small tweak
authorUwe Stöhr <uwestoehr@web.de>
Thu, 27 Sep 2007 22:52:37 +0000 (22:52 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 27 Sep 2007 22:52:37 +0000 (22:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20553 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index 6e7b7aa6a1af8684acfcf7d741ba15a11a0e4c83..3558686cb276d4896504fd1529160270ea9348b2 100644 (file)
@@ -340,11 +340,11 @@ def revert_wrapfig_options(document):
     "Revert optional options for wrap floats (wrapfig)."
     i = 0
     while True:
-        i = find_tokens(document.body, "lines", i)
+        i = find_token(document.body, "lines", i)
         if i == -1:
             return
         del document.body[i]
-        j = find_tokens(document.body, "overhang", i+1)
+        j = find_token(document.body, "overhang", i+1)
         if j != i + 1 and j != -1:
             document.warning("Malformed LyX document: Couldn't find overhang parameter of wrap float.")
         if j == -1: