From ad0643f4b55fe539cfad2bda89008993a99aba3e Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sat, 28 Nov 2015 18:13:07 +0100 Subject: [PATCH] Fix off by one error Looks like I forgot to test this case without quotes, but fortunately the new export test found it. --- development/autotests/revertedTests | 1 - lib/lyx2lyx/lyx_2_2.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/development/autotests/revertedTests b/development/autotests/revertedTests index bc385c79ab..5619e40d9c 100644 --- a/development/autotests/revertedTests +++ b/development/autotests/revertedTests @@ -218,7 +218,6 @@ export/mathmacros/testcases_master_child_.* export/mathmacros/testcases_speed_(dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF)) # Language nesting, document is OK, fails because of a bug in LyX -export/export/languagenesting1_lyx16 export/export/languagenesting1_dvi export/export/languagenesting1_pdf export/export/languagenesting1_pdf2 diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index b9ea260382..7e92c665f4 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -2105,9 +2105,9 @@ def revert_fontsettings(document): document.header[i:i+1] = [f + ' ' + line[q1+1:q2]] else: if use_non_tex_fonts == "true": - document.header[i:i+1] = [f + ' ' + line.split()[2]] - else: document.header[i:i+1] = [f + ' ' + line.split()[1]] + else: + document.header[i:i+1] = [f + ' ' + line.split()[0]] j = j + 1 -- 2.39.5