summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2016-09-26 17:58:43 +0300
committerTakeshi Abe <tabe@fixedpoint.jp>2016-09-30 05:06:34 +0000
commit8e466c431e6d61911b2b15895a4b63df12422057 (patch)
tree3392ed224d21f3bb042b7c6b3e14adef3de5b7ba /starmath
parenta324e85cbbe62c8d8b6b6c0d0692746c17673453 (diff)
tdf#97164 Add text for visualition of percent symbol.
Change-Id: I31dc1a7a4ed0bc0e760e10c1a2ff52660a258e12 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/29299 Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp> Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/qa/cppunit/test_nodetotextvisitors.cxx3
-rw-r--r--starmath/source/parse.cxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 8b1e2153cb94..f6f82918eee1 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 f04b177bff32..eeea617a608f 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;