From: Georg Baum Date: Tue, 30 Aug 2005 07:23:20 +0000 (+0000) Subject: fix bug 2004 X-Git-Tag: 1.6.10~13953 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9826fde5c935d94a28cc2fe145b24f26be1f99fc;p=features.git fix bug 2004 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10408 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/ChangeLog b/lib/lyx2lyx/ChangeLog index 3a50be2016..8704d9f13f 100644 --- a/lib/lyx2lyx/ChangeLog +++ b/lib/lyx2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-08-30 Georg Baum + + * lyx_1_4.py (add_to_preamble): fix invocation of find_token (bug 2004) + 2005-08-18 José Matos * lyx_1_4.py (remove_paperpackage): fix bug 2001. diff --git a/lib/lyx2lyx/lyx_1_4.py b/lib/lyx2lyx/lyx_1_4.py index 738207e2d0..3a40de3655 100644 --- a/lib/lyx2lyx/lyx_1_4.py +++ b/lib/lyx2lyx/lyx_1_4.py @@ -1045,7 +1045,7 @@ def insert_ert(body, i, status, text): # Add text to the preamble if it is not already there. # Only the first line is checked! def add_to_preamble(file, text): - if find_token(file.preamble, text[0]) != -1: + if find_token(file.preamble, text[0], 0) != -1: return file.preamble.extend(text)