]> git.lyx.org Git - features.git/commitdiff
Fix off by one error
authorGeorg Baum <baum@lyx.org>
Sat, 28 Nov 2015 17:13:07 +0000 (18:13 +0100)
committerGeorg Baum <baum@lyx.org>
Sat, 28 Nov 2015 17:25:33 +0000 (18:25 +0100)
Looks like I forgot to test this case without quotes, but fortunately the new
export test found it.

development/autotests/revertedTests
lib/lyx2lyx/lyx_2_2.py

index bc385c79ab05f05d1e52a6a73ab69d6011f5b8f6..5619e40d9cdfeed33bbfc046d9294eede0ad6a4e 100644 (file)
@@ -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
index b9ea26038282b47cc893af11477fb7e1d6067a8c..7e92c665f4117aa9b124cc14c8785b5846cea6a5 100644 (file)
@@ -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