The branch, betterspacing, has been updated.

- Log -----------------------------------------------------------------

commit 52c3dc6a3f6447f43119f616dbf865f4e1ed2794
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Nov 14 18:01:56 2016 +0100

    Fixup: script nucleus has the class of its last element, not its first.
    
    This makes more sense since, on reload, only the last element will be kept.

diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp
index 37dcae3..91c4ad4 100644
--- a/src/mathed/InsetMathScript.cpp
+++ b/src/mathed/InsetMathScript.cpp
@@ -281,7 +281,8 @@ MathClass InsetMathScript::mathClass() const
        if (cell(0).empty())
                return MC_ORD;
        else
-               return cell(0)[0]->mathClass();
+               // return the class of last element since this is the one that 
counts.
+               return cell(0)[cell(0).size() - 1]->mathClass();
 }
 
 

-----------------------------------------------------------------------

Summary of changes:
 src/mathed/InsetMathScript.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Repository for new features

Reply via email to