[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - starmath/qa starmath/source
Gulsah Kose
gulsah.1004 at gmail.com
Fri Dec 16 09:03:52 UTC 2016
starmath/qa/cppunit/test_nodetotextvisitors.cxx | 3 +++
starmath/source/parse.cxx | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 0d0507ad622516fdc03d994ba3136cebd058a301
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>
(cherry picked from commit 8e466c431e6d61911b2b15895a4b63df12422057)
Reviewed-on: https://gerrit.libreoffice.org/31976
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index ffa3f59..d97d59f 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -661,6 +661,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 591404a..06562a5 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -654,7 +654,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