fix bug 2004

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-08-30 07:23:20 +00:00
parent a0c546831e
commit 9826fde5c9
2 changed files with 5 additions and 1 deletions

View 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.

View 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)