commit 43a80ef7df941b3e0fb7cf85dae0445f21bce5c5
Author: Uwe Stöhr <[email protected]>
Date: Wed Nov 4 02:18:28 2015 +0100
lyx_2_2.py: add a safe guard
diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py
index 5bcf395..ccc4b44 100644
--- a/lib/lyx2lyx/lyx_2_2.py
+++ b/lib/lyx2lyx/lyx_2_2.py
@@ -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: