Author: rgheck
Date: Fri Nov 5 21:13:58 2010
New Revision: 36139
URL: http://www.lyx.org/trac/changeset/36139
Log:
Make sure we delete this line.
Modified:
lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
Modified: lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
==============================================================================
--- lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Fri Nov 5 21:11:51 2010
(r36138)
+++ lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Fri Nov 5 21:13:58 2010
(r36139)
@@ -1152,14 +1152,15 @@
if i == -1:
return
+ colorcode = get_value(document.header, '\\notefontcolor', i)
+ del document.header[i]
+
# are there any grey notes?
if find_token(document.body, "\\begin_inset Note Greyedout", 0) == -1:
- # no need to do anything, and \renewcommand will throw an error
- # since lyxgreyedout will not exist.
+ # no need to do anything else, and \renewcommand will throw
+ # an error since lyxgreyedout will not exist.
return
- colorcode = get_value(document.header, '\\notefontcolor', i)
- del document.header[i]
# the color code is in the form #rrggbb where every character denotes a
hex number
red = hex2ratio(colorcode[1:3])
green = hex2ratio(colorcode[3:5])