Kaydet (Commit) e71d6df4 authored tarafından Miklos Vajna's avatar Miklos Vajna

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.
üst e4e77861
...@@ -2057,7 +2057,8 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) ...@@ -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:
......
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