diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 10:04:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:36 +0000 |
commit | 7be08f650d0d78e2f812b4161c579e84f7e86e1b (patch) | |
tree | 7f818eff8486bcadb7806678429c5f514e0474b9 /starmath | |
parent | cc8d68d6f23fd2cde8a47c8aced9fbecfb48ec94 (diff) |
coverity#1266487 Use of untrusted scalar value
Change-Id: I6de5b1e4d363063ec5d9e471c40cf1f943468634
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |