From ab80a57edd91104483aa485e0f9597db80a92635 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 3 Nov 2010 23:35:40 +0000 Subject: [PATCH] One more minor thing.... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36025 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- 2.39.5