diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-03-29 16:48:51 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-04-07 20:52:02 +0000 |
commit | 6f1df6dca04579dea5e54113cc9c0003ee98ebfe (patch) | |
tree | 23375b0179d8358eb1f830669792daaadac47fc3 /starmath | |
parent | e88ba02a70c3f2279ed7ceefeb94f843537bcf8e (diff) |
starmath: Assert that SmAlignNode must have only one child
Change-Id: Ia59e453040b121c27a1326ee4bdc8a7ccaa4074d
Reviewed-on: https://gerrit.libreoffice.org/23588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/node.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index f7dec45fd0cb..b0cecfab4aca 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1725,9 +1725,10 @@ void SmOperNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) void SmAlignNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) // set alignment within the entire subtree (including current node) { - OSL_ENSURE(GetNumSubNodes() > 0, "Sm: missing subnode"); + assert(GetNumSubNodes() == 1); SmNode *pNode = GetSubNode(0); + assert(pNode); RectHorAlign eHorAlign = RectHorAlign::Center; switch (GetToken().eType) |