From: Jean-Marc Lasgouttes Date: Sun, 24 Sep 2017 20:37:56 +0000 (+0200) Subject: Do not apply mathindent to inline math insets X-Git-Tag: 2.3.0rc1~85 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f2f7ea9edcdafb0e02d91cc2af53185154d41bd8;p=features.git Do not apply mathindent to inline math insets (cherry picked from commit 040e9d32a6c1f69c444ed6593e67f96829f8052f) --- 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);