Kaydet (Commit) a35d8b1c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735576 nKeyword can only be RTF_SBASEDON here

Change-Id: I26b0dc18e9b4a99b267a28d768c235ef5abbe755
üst af871265
......@@ -2861,7 +2861,7 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_RIN: nSprm = 0x845d; break;
case RTF_ITAP: nSprm = NS_sprm::LN_PTableDepth; break;
case RTF_SBASEDON:
nSprm = (nKeyword == RTF_SBASEDON) ? NS_ooxml::LN_CT_Style_basedOn : NS_ooxml::LN_CT_Style_next;
nSprm = NS_ooxml::LN_CT_Style_basedOn;
pIntValue.reset(new RTFValue(getStyleName(nParam)));
break;
default: break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment