Minor structural improvement.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36093 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-04 21:42:24 +00:00
parent 27f4623b57
commit ddf9ed7608

View File

@ -1769,7 +1769,6 @@ def revert_mathdots(document):
" Load mathdots if used in the document "
mathdots = find_token(document.header, "\\use_mathdots" , 0)
usedots = 1
if mathdots == -1:
document.warning("No \\usemathdots line. Assuming auto.")
else:
@ -1778,14 +1777,13 @@ def revert_mathdots(document):
try:
usedots = int(val)
except:
document.warning("Invalid \\use_mathdots value: " + val)
document.warning("Invalid \\use_mathdots value: " + val + ". Assuming auto.")
# probably usedots has not been changed, but be safe.
usedots = 1
if usedots == 0:
# do not load case
return
if usedots == 2:
# force load case
add_to_preamble(["% lyx2lyx mathdots addition", "\\usepackage{mathdots}"])