Kaydet (Commit) f5b58a5e authored tarafından Michael Stahl's avatar Michael Stahl

previous commit used OUString::number, use valueOf instead

Change-Id: I3c684ceced78f1238320972312be83e2cf5b59d2
üst f5b7e504
...@@ -813,12 +813,12 @@ int RTFDocumentImpl::resolvePict(bool bInline) ...@@ -813,12 +813,12 @@ int RTFDocumentImpl::resolvePict(bool bInline)
// See OOXMLFastContextHandler::positionOffset(), we can't just put values in an RTFValue. // See OOXMLFastContextHandler::positionOffset(), we can't just put values in an RTFValue.
if (m_aStates.top().aShape.nLeft > 0) 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()))); aAnchorSprms.set(NS_ooxml::LN_CT_Anchor_positionH, RTFValue::Pointer_t(new RTFValue(RTFSprms())));
} }
if (m_aStates.top().aShape.nTop > 0) 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()))); aAnchorSprms.set(NS_ooxml::LN_CT_Anchor_positionV, RTFValue::Pointer_t(new RTFValue(RTFSprms())));
} }
......
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