One more minor thing....

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36025 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-03 23:35:40 +00:00
parent ce7c1afc34
commit ab80a57edd

View File

@ -658,7 +658,7 @@ def revert_backgroundcolor(document):
i = find_token(document.header, "\\backgroundcolor", 0)
if i == -1:
return
colorcode = get_value(document.header, '\\backgroundcolor', 0)
colorcode = get_value(document.header, '\\backgroundcolor', i)
del document.header[i]
# don't clutter the preamble if backgroundcolor is not set
if colorcode == "#ffffff":