mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
a0c546831e
commit
9826fde5c9
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user