From: Uwe Stöhr Date: Sat, 30 Jul 2011 16:40:03 +0000 (+0000) Subject: lyx_2_0.py: fix bug when exporting documents containing \iddots in math to LyX 1.6.x X-Git-Tag: 2.1.0beta1~2877 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=73810266cfbf9645e1da338c9f3d666b2bf3af8c;p=lyx.git lyx_2_0.py: fix bug when exporting documents containing \iddots in math to LyX 1.6.x This must also go to branch, OK Richard? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39383 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 6f89b5c0a8..f43618197e 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1828,7 +1828,7 @@ def revert_mathdots(document): mathdots = find_token(document.header, "\\use_mathdots" , 0) if mathdots == -1: - document.warning("No \\usemathdots line. Assuming auto.") + document.warning("No \\use_mathdots line. Assuming auto.") else: val = get_value(document.header, "\\use_mathdots", mathdots) del document.header[mathdots] @@ -1844,7 +1844,7 @@ def revert_mathdots(document): return if usedots == 2: # force load case - add_to_preamble(["\\usepackage{mathdots}"]) + add_to_preamble(document, ["\\usepackage{mathdots}"]) return # so we are in the auto case. we want to load mathdots if \iddots is used.