Kaydet (Commit) 252773f2 authored tarafından Takeshi Abe's avatar Takeshi Abe

Expect 3 subnodes for SmBinVerNode/SmBinHorNode/SmBinDiagonalNode

Change-Id: Ib57b60f6b469b3018c5fb30a7a293089bd35e446
Reviewed-on: https://gerrit.libreoffice.org/28001Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 107a7cc5
......@@ -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)
{
......
......@@ -140,7 +140,7 @@ void SmOoxmlExport::HandleFractions( const SmNode* pNode, int nLevel, const char
m_pSerializer->singleElementNS( XML_m, XML_type, FSNS( XML_m, XML_val ), type, FSEND );
m_pSerializer->endElementNS( XML_m, XML_fPr );
}
OSL_ASSERT( pNode->GetNumSubNodes() == 3 );
assert( pNode->GetNumSubNodes() == 3 );
m_pSerializer->startElementNS( XML_m, XML_num, FSEND );
HandleNode( pNode->GetSubNode( 0 ), nLevel + 1 );
m_pSerializer->endElementNS( XML_m, XML_num );
......
......@@ -77,7 +77,7 @@ void SmRtfExport::HandleFractions(const SmNode* pNode, int nLevel, const char* t
m_pBuffer->append("}"); // mtype
m_pBuffer->append("}"); // mfPr
}
OSL_ASSERT(pNode->GetNumSubNodes() == 3);
assert(pNode->GetNumSubNodes() == 3);
m_pBuffer->append("{" LO_STRING_SVTOOLS_RTF_MNUM " ");
HandleNode(pNode->GetSubNode(0), nLevel + 1);
m_pBuffer->append("}"); // mnum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment