summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2016-09-26 17:58:43 +0300
committerCaolán McNamara <caolanm@redhat.com>2016-12-16 09:03:02 +0000
commit0d0507ad622516fdc03d994ba3136cebd058a301 (patch)
treef1be6ccb2b20caf5367e815fa29eeaf110004cfb
parent01892beebfa1df58452b2bbc04fb2577e1627c22 (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> (cherry picked from commit 8e466c431e6d61911b2b15895a4b63df12422057) Reviewed-on: https://gerrit.libreoffice.org/31976 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 ffa3f599f932..d97d59ffcb6d 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 591404af14a1..06562a565d36 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;