diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-27 18:43:56 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-28 00:55:32 +0000 |
commit | f07aa1136ee68329a2b5f7cb88d2a8b5c83f474b (patch) | |
tree | 04a5952af5760f3002040ce2c0d4ab935284ca58 /starmath | |
parent | e74382fd6385138b164df5e4f93a0e7df2857f2c (diff) |
starmath: This condition must be met
Otherwise, the following static_cast would be broken.
Change-Id: Iad4738292ed6903eed78d5af98f77194d5a1d8fe
Reviewed-on: https://gerrit.libreoffice.org/26696
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/parse.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 7d02badf4e46..b7a0cf0aeba2 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1508,10 +1508,7 @@ void SmParser::DoTerm(bool bGroupNumberIdent) DoFontAttribut(); SmNode* pTmp = popOrZero(m_aNodeStack); - - // check if casting in following line is ok - OSL_ENSURE(pTmp && !pTmp->IsVisible(), "Sm : Ooops..."); - + assert(pTmp && !pTmp->IsVisible()); aStack.push(static_cast<SmStructureNode *>(pTmp)); } |