[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - writerfilter/source

Michael Stahl mstahl at redhat.com
Tue Feb 5 13:51:43 PST 2013


 writerfilter/source/rtftok/rtfdocumentimpl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f5b58a5ed32b4f4bcb6e48e2c6db059c9163dc96
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Feb 5 22:48:37 2013 +0100

    previous commit used OUString::number, use valueOf instead
    
    Change-Id: I3c684ceced78f1238320972312be83e2cf5b59d2

diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index db8a06d..cdea1b1 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -813,12 +813,12 @@ int RTFDocumentImpl::resolvePict(bool bInline)
         // See OOXMLFastContextHandler::positionOffset(), we can't just put values in an RTFValue.
         if (m_aStates.top().aShape.nLeft > 0)
         {
-            writerfilter::dmapper::PositionHandler::setPositionOffset(OUString::number(MM100_TO_EMU(m_aStates.top().aShape.nLeft)), false);
+            writerfilter::dmapper::PositionHandler::setPositionOffset(OUString::valueOf(sal::static_int_cast<sal_Int32>(MM100_TO_EMU(m_aStates.top().aShape.nLeft))), false);
             aAnchorSprms.set(NS_ooxml::LN_CT_Anchor_positionH, RTFValue::Pointer_t(new RTFValue(RTFSprms())));
         }
         if (m_aStates.top().aShape.nTop > 0)
         {
-            writerfilter::dmapper::PositionHandler::setPositionOffset(OUString::number(MM100_TO_EMU(m_aStates.top().aShape.nTop)), true);
+            writerfilter::dmapper::PositionHandler::setPositionOffset(OUString::valueOf(sal::static_int_cast<sal_Int32>(MM100_TO_EMU(m_aStates.top().aShape.nTop))), true);
             aAnchorSprms.set(NS_ooxml::LN_CT_Anchor_positionV, RTFValue::Pointer_t(new RTFValue(RTFSprms())));
         }
 


More information about the Libreoffice-commits mailing list