summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/qa/extras/mmlimport-test.cxx6
-rw-r--r--starmath/source/node.cxx9
2 files changed, 5 insertions, 10 deletions
diff --git a/starmath/qa/extras/mmlimport-test.cxx b/starmath/qa/extras/mmlimport-test.cxx
index 3effb31a2823..d0cccd782102 100644
--- a/starmath/qa/extras/mmlimport-test.cxx
+++ b/starmath/qa/extras/mmlimport-test.cxx
@@ -85,21 +85,21 @@ void Test::tearDown()
void Test::testSimple()
{
loadURL(getURLFromSrc("starmath/qa/extras/data/simple.mml"));
- OUString sExpected("left ( {italic \"a\" + italic \"b\"} right )^italic \"2\"");
+ OUString sExpected("left ( {a + b} right )^2");
CPPUNIT_ASSERT_EQUAL_MESSAGE("loaded text", sExpected, mxDocShell->GetText());
}
void Test::testNsPrefixMath()
{
loadURL(getURLFromSrc("starmath/qa/extras/data/ns-prefix-math.mml"));
- OUString sExpected("left ( {italic \"a\" + italic \"b\"} right )^italic \"2\"");
+ OUString sExpected("left ( {a + b} right )^2");
CPPUNIT_ASSERT_EQUAL_MESSAGE("loaded text", sExpected, mxDocShell->GetText());
}
void Test::testMaction()
{
loadURL(getURLFromSrc("starmath/qa/extras/data/maction.mml"));
- OUString sExpected("matrix {italic \"1\" ## italic \"2\" ## italic \"3\"}");
+ OUString sExpected("matrix {1 ## 2 ## 3}");
CPPUNIT_ASSERT_EQUAL_MESSAGE("loaded text", sExpected, mxDocShell->GetText());
}
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 9e6681010e51..f8a7ae1a25ce 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2367,13 +2367,8 @@ void SmTextNode::CreateTextFromNode(OUString &rText)
(pResult->GetNumSubNodes() == 1) )
{
pResult = pResult->GetSubNode(0);
- if ( (pResult->GetType() == NEXPRESSION) &&
- (pResult->GetNumSubNodes() == 1) )
- {
- pResult = pResult->GetSubNode(0);
- if (pResult->GetType() == NTEXT)
- bQuoted=false;
- }
+ if (pResult->GetType() == NTEXT)
+ bQuoted=false;
}
}
delete pTable;