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:
@@ -2057,7 +2057,8 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
|
|||||||
case RTF_CF:
|
case RTF_CF:
|
||||||
{
|
{
|
||||||
// NS_sprm::LN_CIco won't work, that would be an index in a static table
|
// 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;
|
break;
|
||||||
case RTF_S:
|
case RTF_S:
|
||||||
|
Reference in New Issue
Block a user