From cf06f049559c4c75db11f3eaede5f26c33dd8a10 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 23 Oct 2008 19:18:21 +0000 Subject: [PATCH] Stupid. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27060 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 66f0e8c46b..19a4d521ca 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1563,7 +1563,7 @@ def convert_macro_global(document): i = 0 while True: i = find_token(document.body, "\\begin_inset FormulaMacro", i) - if i != -1: + if i == -1: return # if i <= 13, then there isn't enough room for the ERT if i <= 12: @@ -1574,6 +1574,7 @@ def convert_macro_global(document): i = i - 12 else: i += 1 + print i def revert_macro_optional_params(document): -- 2.39.2