From: Richard Heck Date: Wed, 3 Nov 2010 23:35:40 +0000 (+0000) Subject: One more minor thing.... X-Git-Tag: 2.0.0~2087 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ab80a57edd91104483aa485e0f9597db80a92635;p=features.git One more minor thing.... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36025 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 5385f87d19..b5f21f0ac2 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -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":