From 43a80ef7df941b3e0fb7cf85dae0445f21bce5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Wed, 4 Nov 2015 02:18:28 +0100 Subject: [PATCH] lyx_2_2.py: add a safe guard --- lib/lyx2lyx/lyx_2_2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index 5bcf395a18..ccc4b4455b 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: