Related: fdo#43380 fix parsing of the \cf RTF token

Send the real color value to dmapper, not the index, which is
meaningless outside the tokenizer.
This commit is contained in:
Miklos Vajna 2011-12-27 00:00:33 +01:00
parent e4e77861c6
commit e71d6df413

View File

@ -2057,7 +2057,8 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_CF:
{
// NS_sprm::LN_CIco won't work, that would be an index in a static table
m_aStates.top().aCharacterAttributes->push_back(make_pair(NS_ooxml::LN_CT_Color_val, pIntValue));
RTFValue::Pointer_t pValue(new RTFValue(getColorTable(nParam)));
m_aStates.top().aCharacterAttributes->push_back(make_pair(NS_ooxml::LN_CT_Color_val, pValue));
}
break;
case RTF_S: