diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-04 10:14:30 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-01-04 14:25:21 +0100 |
commit | a157504298d5e6940f3657d583ed8b38cbc132e7 (patch) | |
tree | 3cca87ae9bf7245acea9187785b466bb74ce8aba /lotuswordpro | |
parent | 529924a29ce6f688337f91de9dcf1aa9869e91ad (diff) |
ofz#4946 keep nPos within bounds
Change-Id: Ib5dc37b489b7b2101cf852a46f48fff1b7447a30
Reviewed-on: https://gerrit.libreoffice.org/47378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpsilverbullet.hxx b/lotuswordpro/source/filter/lwpsilverbullet.hxx index 111e5792872c..14cdeb6c3bfa 100644 --- a/lotuswordpro/source/filter/lwpsilverbullet.hxx +++ b/lotuswordpro/source/filter/lwpsilverbullet.hxx @@ -153,7 +153,9 @@ inline const OUString& LwpSilverBullet::GetBulletStyleName() const } inline bool LwpSilverBullet::IsLesserLevel(sal_uInt16 nPos) { - return ((m_pResetPositionFlags[nPos] & LESSERLEVEL) != 0); + if (nPos < SAL_N_ELEMENTS(m_pResetPositionFlags)) + return ((m_pResetPositionFlags[nPos] & LESSERLEVEL) != 0); + return false; } #endif |