[Libreoffice-commits] core.git: writerfilter/source

Mike Kaganski mike.kaganski at collabora.com
Sun Jan 28 14:32:03 UTC 2018


 writerfilter/source/rtftok/rtfdispatchvalue.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 968084838e980b4152d88b95570c16ebad9d9b16
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Sun Jan 28 13:07:40 2018 +0100

    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/48780
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
index a704bbdf2ffa..726cb90acb37 100644
--- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
@@ -557,7 +557,8 @@ RTFError RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
         break;
         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);
         }
         break;


More information about the Libreoffice-commits mailing list