summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-06-27 18:43:56 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-06-28 00:55:32 +0000
commitf07aa1136ee68329a2b5f7cb88d2a8b5c83f474b (patch)
tree04a5952af5760f3002040ce2c0d4ab935284ca58 /starmath
parentadd ASIN, ASINH test case (diff)
downloadcore-f07aa1136ee68329a2b5f7cb88d2a8b5c83f474b.tar.gz
core-f07aa1136ee68329a2b5f7cb88d2a8b5c83f474b.zip
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.cxx5
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));
}