From 2b16811b4675b277eef8ad6f46e5a390d25d4e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Wed, 3 Oct 2007 09:55:37 +0000 Subject: [PATCH] lyx2lyx/lyx_1_6.py: small code change for better understanding git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20689 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 031f1cdc16..cccb14f64e 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -347,13 +347,13 @@ def revert_wrapfig_options(document): i = find_token(document.body, "lines", i) if i == -1: return - del document.body[i] j = find_token(document.body, "overhang", i+1) - if j != i + 1 and j != -1: + if j != i + 2 and j != -1: document.warning("Malformed LyX document: Couldn't find overhang parameter of wrap float.") if j == -1: return - del document.body[j] + del document.body[i] + del document.body[j-1] i = i + 1