]> git.lyx.org Git - features.git/commitdiff
Fix #10760
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 10 Sep 2017 17:43:27 +0000 (19:43 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 10 Sep 2017 17:45:01 +0000 (19:45 +0200)
lib/lyx2lyx/lyx_2_3.py

index 73ac45cf00c8d23c0db2c9c28b491e88034e0047..edc5b1ffa9384c83ec41f840ea6c8a38a3121a41 100644 (file)
@@ -1996,7 +1996,8 @@ def revert_mathindent(document):
     i = find_re(document.header, regexp, 0)
     if i != -1:
         value = get_value(document.header, "\\math_indentation" , i).split()[0]
-        add_to_preamble(document, ["\\setlength{\\mathindent}{" + value + '}'])
+        if value != "default":
+            add_to_preamble(document, ["\\setlength{\\mathindent}{" + value + '}'])
         del document.header[i]
     # now set the document class option
     regexp = re.compile(r'(\\is_math_indent 1)')