]> git.lyx.org Git - lyx.git/commitdiff
lyx_2_0.py: fix bug when exporting documents containing \iddots in math to LyX 1.6.x
authorUwe Stöhr <uwestoehr@web.de>
Sat, 30 Jul 2011 16:40:03 +0000 (16:40 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 30 Jul 2011 16:40:03 +0000 (16:40 +0000)
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

lib/lyx2lyx/lyx_2_0.py

index 6f89b5c0a823312818263c0616c304d158e46544..f43618197e4407c7c73cd959870a45e5b9ab2cb6 100644 (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.