The branch, betterspacing, has been updated.

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

commit fea70978de1736b27e7f892823b17c29b2969d46
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Nov 16 11:58:34 2016 +0100

    Fixup: avoid spacing the text mode

diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp
index 35cb919..3ca6d34 100644
--- a/src/mathed/MathRow.cpp
+++ b/src/mathed/MathRow.cpp
@@ -64,6 +64,12 @@ MathRow::MathRow(MetricsInfo & mi, MathData const * ar)
        push_back(Element(END, mi));
        back().mclass = MC_CLOSE;
 
+       /* Avoid spacing in text-in-math mode. This test is a bit clumsy,
+        * but it is used in other places for guessing the current mode.
+        */
+       if (isTextFont(mi.base.fontname))
+               return;
+
        // update classes
        for (int i = 1 ; i != static_cast<int>(elements_.size()) - 1 ; ++i) {
                if (elements_[i].type != INSET)

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

Summary of changes:
 src/mathed/MathRow.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Repository for new features

Reply via email to