The branch, betterspacing, has been updated.

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

commit 7a02c5964b6e6508ad3bbb0567beea2b3cd2ee2b
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Nov 16 14:43:24 2016 +0100

    Fixup row drawing: remember correctly position of insets
    
    The position may have been changed by InsetMath::draw.

diff --git a/src/mathed/MathRow.cpp b/src/mathed/MathRow.cpp
index 913dde6..3dbfda6 100644
--- a/src/mathed/MathRow.cpp
+++ b/src/mathed/MathRow.cpp
@@ -198,7 +198,6 @@ void MathRow::draw(PainterInfo & pi, int x, int const y) 
const
                pi.base.macro_nesting = e.macro_nesting;
                switch (e.type) {
                case INSET: {
-                       coords.insets().add(e.inset, x, y);
                        // This is hackish: the math inset does not know that 
space
                        // has been added before and after it; we alter its 
dimension
                        // while it is drawing, because it relies on this value.
@@ -208,6 +207,7 @@ void MathRow::draw(PainterInfo & pi, int x, int const y) 
const
                        coords.insets().add(e.inset, d2);
                        e.inset->drawSelection(pi, x + e.before, y);
                        e.inset->draw(pi, x + e.before, y);
+                       coords.insets().add(e.inset, x, y);
                        coords.insets().add(e.inset, d);
                        x += d.wid;
                        break;

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

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


hooks/post-receive
-- 
Repository for new features

Reply via email to