summaryrefslogtreecommitdiff
path: root/starmath/source/mathmlexport.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-08-09 18:25:46 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-08-10 03:09:30 +0000
commit252773f2bcd12660875ba72df744054a6e55b253 (patch)
tree115777dffe86f39b3b44ab6487a199344eb93e98 /starmath/source/mathmlexport.cxx
parent107a7cc5a2f1c018cbba6b35f3ea590027f8ec9a (diff)
Expect 3 subnodes for SmBinVerNode/SmBinHorNode/SmBinDiagonalNode
Change-Id: Ib57b60f6b469b3018c5fb30a7a293089bd35e446 Reviewed-on: https://gerrit.libreoffice.org/28001 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/mathmlexport.cxx')
-rw-r--r--starmath/source/mathmlexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 6abd5be7f198..0567181f6df6 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -668,7 +668,7 @@ void SmXMLExport::ExportExpression(const SmNode *pNode, int nLevel,
void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel)
{
- OSL_ENSURE(pNode->GetNumSubNodes()==3,"Bad Fraction");
+ assert(pNode->GetNumSubNodes() == 3);
const SmNode *pNum = pNode->GetSubNode(0);
const SmNode *pDenom = pNode->GetSubNode(2);
if (pNum->GetType() == NALIGN && pNum->GetToken().eType != TALIGNC)
@@ -692,7 +692,7 @@ void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel)
void SmXMLExport::ExportBinaryDiagonal(const SmNode *pNode, int nLevel)
{
- OSL_ENSURE(pNode->GetNumSubNodes()==3, "Bad Slash");
+ assert(pNode->GetNumSubNodes() == 3);
if (pNode->GetToken().eType == TWIDESLASH)
{