]> git.lyx.org Git - features.git/commitdiff
lyx_2_2.py: add a safe guard
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 4 Nov 2015 01:18:28 +0000 (02:18 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 4 Nov 2015 01:18:28 +0000 (02:18 +0100)
lib/lyx2lyx/lyx_2_2.py

index 5bcf395a184932b357c7d8af6532fcfa4796efc7..ccc4b4455bed0ca28dc5dad4c9c447d97a562033 100644 (file)
@@ -1997,6 +1997,9 @@ def convert_moderncv(document):
 
 def revert_achemso(document):
   " Reverts the flex inset Latin to TeX code "
+  
+  if document.textclass != "achemso":
+    return
   i = 0
   j = 0
   while True: