summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-08-05 23:32:49 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-08-07 03:36:37 +0000
commitdd612a61f9df81343ed5f810068002a7a25046a7 (patch)
tree84c4271d5a4d469b73be2fb00467625516a4fb9a /starmath/inc/node.hxx
parent05c89af876fc7bb2e02e7de84df0cfc2869b0071 (diff)
starmath: complete SmAttributNode has just 2 subnodes
Change-Id: Ifbecef188b314d599d7e97717934143b2aac8c09 Reviewed-on: https://gerrit.libreoffice.org/27912 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r--starmath/inc/node.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index e0b2019d433a..a57922175b94 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -1145,7 +1145,7 @@ class SmAttributNode : public SmStructureNode
{
public:
explicit SmAttributNode(const SmToken &rNodeToken)
- : SmStructureNode(NATTRIBUT, rNodeToken)
+ : SmStructureNode(NATTRIBUT, rNodeToken, 2)
{}
virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat) override;
@@ -1323,7 +1323,7 @@ inline const SmNode* SmBinHorNode::RightOperand() const
inline SmNode* SmAttributNode::Attribute()
{
- OSL_ASSERT( GetNumSubNodes() > 0 );
+ assert( GetNumSubNodes() == 2 );
return GetSubNode( 0 );
}
inline const SmNode* SmAttributNode::Attribute() const
@@ -1332,7 +1332,7 @@ inline const SmNode* SmAttributNode::Attribute() const
}
inline SmNode* SmAttributNode::Body()
{
- OSL_ASSERT( GetNumSubNodes() > 1 );
+ assert( GetNumSubNodes() == 2 );
return GetSubNode( 1 );
}
inline const SmNode* SmAttributNode::Body() const