diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-28 14:33:24 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-29 02:35:39 +0000 |
commit | f6c004800a73059eea5267f58bdac118e7a37656 (patch) | |
tree | a513f171f38a278053ed87899f6f6f37681bbe41 /starmath | |
parent | ae51f416fa375ad86e1836c1ad03b5da2c551fe5 (diff) |
starmath: SmBinDiagonalNode's 3rd child must be SmPolyLineNode
Change-Id: If3b81de299eca8b398a65534d1b201bf38daf19f
Reviewed-on: https://gerrit.libreoffice.org/26733
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/node.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 8300752a171a..fa0c7484e548 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1144,12 +1144,13 @@ void SmBinDiagonalNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) // Both arguments have to get into the SubNodes before the Operator so that clicking // within the GraphicWindow sets the FormulaCursor correctly (cf. SmRootNode) SmNode *pLeft = GetSubNode(0), - *pRight = GetSubNode(1); + *pRight = GetSubNode(1), + *pLine = GetSubNode(2); assert(pLeft); assert(pRight); + assert(pLine && pLine->GetType() == NPOLYLINE); - OSL_ENSURE(GetSubNode(2)->GetType() == NPOLYLINE, "Sm : wrong node type"); - SmPolyLineNode *pOper = static_cast<SmPolyLineNode *>(GetSubNode(2)); + SmPolyLineNode *pOper = static_cast<SmPolyLineNode *>(pLine); assert(pOper); //! some routines being called extract some info from the OutputDevice's |