coverity#1000696 Out-of-bounds access

Change-Id: I4e69c7f5e45882238c4cc27244f38b81c87780e2
This commit is contained in:
Caolán McNamara
2014-01-29 10:07:43 +00:00
parent 19aa235feb
commit fe89615fd2

View File

@@ -5321,7 +5321,7 @@ PPTPortionObj::PPTPortionObj( const PPTCharPropSet& rCharPropSet, const PPTStyle
PPTCharPropSet ( rCharPropSet ), PPTCharPropSet ( rCharPropSet ),
mrStyleSheet ( rStyleSheet ), mrStyleSheet ( rStyleSheet ),
mnInstance ( nInstance ), mnInstance ( nInstance ),
mnDepth ( nDepth ) mnDepth ( ( nDepth > 4 ) ? 4 : nDepth )
{ {
} }