]> git.lyx.org Git - lyx.git/commitdiff
fix bug 2004
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 30 Aug 2005 07:23:20 +0000 (07:23 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 30 Aug 2005 07:23:20 +0000 (07:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10408 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/ChangeLog
lib/lyx2lyx/lyx_1_4.py

index 3a50be201604cb155705fe0e5d15b06de8c26035..8704d9f13f0bdc04c183a5d0ea02c36936fe34e7 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-30  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * lyx_1_4.py (add_to_preamble): fix invocation of find_token (bug 2004)
+
 2005-08-18  José Matos  <jamatos@lyx.org>
 
        * lyx_1_4.py (remove_paperpackage): fix bug 2001.
index 738207e2d0b8ac7db4d11f2d9831e3dfce2999a5..3a40de3655d8433b6f221449677c707d4152f90c 100644 (file)
@@ -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)