From 040e9d32a6c1f69c444ed6593e67f96829f8052f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 24 Sep 2017 22:37:56 +0200 Subject: [PATCH] Do not apply mathindent to inline math insets --- src/mathed/InsetMathHull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 67c59ddede..e07d5984b2 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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); -- 2.39.2