From 7be08f650d0d78e2f812b4161c579e84f7e86e1b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Jan 2015 10:04:12 +0000 Subject: coverity#1266487 Use of untrusted scalar value Change-Id: I6de5b1e4d363063ec5d9e471c40cf1f943468634 --- starmath/source/mathtype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 68b83c98ebfb..f38791ce618b 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -1862,7 +1862,7 @@ bool MathType::HandleSize(sal_Int16 nLstSize,sal_Int16 nDefSize, int &rSetSize) in aTypeFaces, and a test would be done to see if the new font size would be the same as what starmath would have chosen for itself anyway in which case the size setting could be ignored*/ - nLstSize = aSizeTable[nLstSize]; + nLstSize = aSizeTable.at(nLstSize); nLstSize = nLstSize + nDefSize; if (nLstSize != nCurSize) { -- cgit