diff options
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 c86d387c6f63..2f04feb4e487 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 |