]> git.lyx.org Git - features.git/commitdiff
Do not apply mathindent to inline math insets
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 24 Sep 2017 20:37:56 +0000 (22:37 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 24 Sep 2017 20:38:18 +0000 (22:38 +0200)
src/mathed/InsetMathHull.cpp

index 67c59ddede1b8e1ee5f1f987ab871cf67fd5835d..e07d5984b237fcf4e2b4f1eb2e32b8707750f7db 100644 (file)
@@ -1026,7 +1026,7 @@ int InsetMathHull::indent(BufferView const & bv) const
 {
        // FIXME: set this in the textclass. This value is what the article class uses.
        static Length default_indent(2.5, Length::EM);
-       if (buffer().params().is_math_indent) {
+       if (display() != Inline && buffer().params().is_math_indent) {
                Length const & len = buffer().params().getMathIndent();
                if (len.empty())
                        return bv.inPixels(default_indent);