From 44279587e559b95088b33dca73bede7d4fce6328 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 5 Nov 2010 20:13:58 +0000 Subject: [PATCH] Make sure we delete this line. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36139 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index bacaadd51a..ff45486eb4 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1152,14 +1152,15 @@ def revert_notefontcolor(document): if i == -1: return - # 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. - 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 else, and \renewcommand will throw + # an error since lyxgreyedout will not exist. + return + # 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])