]> git.lyx.org Git - features.git/commitdiff
One more minor thing....
authorRichard Heck <rgheck@comcast.net>
Wed, 3 Nov 2010 23:35:40 +0000 (23:35 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 3 Nov 2010 23:35:40 +0000 (23:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36025 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index 5385f87d19a04b35623a9038e23f47f4af63eb84..b5f21f0ac2c3cd44a3d2660fedd8a42359871576 100644 (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":