[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/2.3.x] Do not apply mathindent to inline math insets
From:       Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date:       2017-09-24 20:55:29
Message-ID: 20170924205529.92322280195 () lyx ! lyx ! org
[Download RAW message or body]

commit f2f7ea9edcdafb0e02d91cc2af53185154d41bd8
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Date:   Sun Sep 24 22:37:56 2017 +0200

    Do not apply mathindent to inline math insets
    
    (cherry picked from commit 040e9d32a6c1f69c444ed6593e67f96829f8052f)
---
 src/mathed/InsetMathHull.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 67c59dd..e07d598 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);

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic