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

sw_redlinehide_3: trivial conversions in new code in xmldump.cxx

Change-Id: I37624c92549b4b3cd4d9616a4952163bf51526ef
üst b8d87fa0
...@@ -133,12 +133,12 @@ class XmlPortionDumper:public SwPortionHandler ...@@ -133,12 +133,12 @@ class XmlPortionDumper:public SwPortionHandler
xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("nHeight"), "%i", static_cast<int>(nHeight)); xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("nHeight"), "%i", static_cast<int>(nHeight));
if (nWidth > 0) if (nWidth > 0)
xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("nWidth"), "%i", static_cast<int>(nWidth)); xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("nWidth"), "%i", static_cast<int>(nWidth));
if (nLength > 0) if (nLength > TextFrameIndex(0))
xmlTextWriterWriteAttribute(writer, BAD_CAST("Portion"), xmlTextWriterWriteAttribute(writer, BAD_CAST("Portion"),
BAD_CAST(m_rText.copy(ofs, nLength).toUtf8().getStr())); BAD_CAST(m_rText.copy(sal_Int32(ofs), sal_Int32(nLength)).toUtf8().getStr()));
xmlTextWriterEndElement( writer ); xmlTextWriterEndElement( writer );
m_aLine += m_rText.copy(ofs, nLength); m_aLine += m_rText.copy(sal_Int32(ofs), sal_Int32(nLength));
ofs += nLength; ofs += nLength;
} }
......
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