Kaydet (Commit) 96808483 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#115276: multiply quarter-points by 5 (not divide) to convert to twips

Unit test will come in separate commit

Change-Id: I4cd6983d708868883c766b239cb57752106a59bf
Reviewed-on: https://gerrit.libreoffice.org/48780Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst fdd41c99
...@@ -557,7 +557,8 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) ...@@ -557,7 +557,8 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
break; break;
case RTF_EXPND: case RTF_EXPND:
{ {
auto pValue = std::make_shared<RTFValue>(nParam / 5); // Convert quarter-points to twentieths of a point
auto pValue = std::make_shared<RTFValue>(nParam * 5);
m_aStates.top().aCharacterSprms.set(NS_ooxml::LN_EG_RPrBase_spacing, pValue); m_aStates.top().aCharacterSprms.set(NS_ooxml::LN_EG_RPrBase_spacing, pValue);
} }
break; 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