[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Mon Nov 21 05:25:39 UTC 2016


 starmath/source/node.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 172325bedf69bbc162f3c1948264451c90c105a3
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Nov 20 12:08:11 2016 +0900

    tdf#79645 Add line spacing only between rows of SmMatrixNode
    
    Change-Id: Icb785aff47de434fd8a99d1841dcbe4464df039f
    Reviewed-on: https://gerrit.libreoffice.org/31007
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index fe84e55..6b7adb4 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2311,7 +2311,8 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
         }
 
         aPos = aLineRect.AlignTo(*this, RectPos::Bottom, RectHorAlign::Center, RectVerAlign::Baseline);
-        aPos.Y() += nVerDist;
+        if (i > 0)
+            aPos.Y() += nVerDist;
 
         // move 'aLineRect' and rectangles in that line to final position
         Point aDelta(0, // since horizontal alignment is already done


More information about the Libreoffice-commits mailing list