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

crashtesting: clamp languagetype param value

e.g. MSVR-34956-mergedlo_utl_ConfigManager-PoC5.rtf

Change-Id: I8bc7d7aa2a188b284750b22716009b835d27c669
Reviewed-on: https://gerrit.libreoffice.org/65229Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e6aaa946
......@@ -501,7 +501,7 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_DEFLANG:
case RTF_ADEFLANG:
{
LanguageTag aTag((LanguageType(nParam)));
LanguageTag aTag((LanguageType(static_cast<sal_uInt16>(nParam))));
auto pValue = new RTFValue(aTag.getBcp47());
putNestedAttribute(m_aStates.top().aCharacterSprms,
(nKeyword == RTF_DEFLANG ? NS_ooxml::LN_EG_RPrBase_lang
......
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