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
This commit is contained in:
Uwe Stöhr 2011-07-30 16:40:03 +00:00
parent 133bb94281
commit 73810266cf

View File

@ -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.