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

Gulsah Kose gulsah.1004 at gmail.com
Fri Sep 30 05:09:15 UTC 2016


 starmath/qa/cppunit/test_nodetotextvisitors.cxx |    3 +++
 starmath/source/parse.cxx                       |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 8e466c431e6d61911b2b15895a4b63df12422057
Author: Gulsah Kose <gulsah.1004 at gmail.com>
Date:   Mon Sep 26 17:58:43 2016 +0300

    tdf#97164 Add text for visualition of percent symbol.
    
    Change-Id: I31dc1a7a4ed0bc0e760e10c1a2ff52660a258e12
    Signed-off-by: Gulsah Kose <gulsah.1004 at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/29299
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>
    Tested-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 8b1e215..f6f8291 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -662,6 +662,9 @@ void Test::testMiscEquivalent()
 
     // tdf#88320
     ParseAndCompare("A_1,B_2", "A_{1},B_2", "Comma between a digit and non-digit delimits subscript");
+
+    //tdf#97164
+    ParseAndCompare("100 %", "100\"%\"", "Percent symbol at the end");
 }
 
 void Test::testParser()
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index f04b177..eeea617 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -655,7 +655,7 @@ void SmParser::NextToken()
                         m_aCurToken.cMathChar  = '\0';
                         m_aCurToken.nGroup     = TG::NONE;
                         m_aCurToken.nLevel     = 5;
-                        m_aCurToken.aText.clear();
+                        m_aCurToken.aText      ="%";
                         m_aCurToken.nRow       = m_Row;
                         m_aCurToken.nCol       = nTmpStart - m_nColOff;
 


More information about the Libreoffice-commits mailing list