summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-04-14 17:34:13 +0900
committerMichael Stahl <mstahl@redhat.com>2016-04-15 10:53:02 +0000
commita3569e968713598270cf97a1ea4636913cf4b984 (patch)
tree78945416419713a39c30508cc0c7701d397988e2 /starmath
parent70bb8c257e7fc402da60fa70109cece1fe4c69d1 (diff)
starmath: Fix bounds checking
Change-Id: I6b7eae01838eaf8138f777c0a9e84a3ad9f97082 Reviewed-on: https://gerrit.libreoffice.org/24078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 90dfb28da6c7..9b3a7859510a 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1247,8 +1247,7 @@ void SmParser::DoSubSup(sal_uLong nActiveGroup)
SAL_WARN( "starmath", "unknown case");
}
nIndex++;
- OSL_ENSURE(1 <= nIndex && nIndex <= 1 + SUBSUP_NUM_ENTRIES,
- "SmParser::Power() : sub-/supscript index falsch");
+ assert(1 <= nIndex && nIndex <= SUBSUP_NUM_ENTRIES);
// set sub-/supscript if not already done
if (aSubNodes[nIndex] != nullptr)