]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_1_4.py
fix bug 2004
[features.git] / lib / lyx2lyx / lyx_1_4.py
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)