Kaydet (Commit) 37a5b8e2 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

125618: *.docx import: correct detection of paragraph break and line break…

125618: *.docx import: correct detection of paragraph break and line break characters, esp. in context of Chinese text

patch by: Mark Hung <marklh9 at gmail dot com>
review by: orw
üst 36cc153d
......@@ -4520,8 +4520,12 @@ void DomainMapper::lcl_utext(const sal_uInt8 * data_, size_t len)
{
m_pImpl->getTableManager().utext(data_, len);
if(len == 1 && ((*data_) == 0x0d || (*data_) == 0x07))
if ( len == 1
&& ( (*(const sal_Unicode*)data_) == 0x0d
|| (*(const sal_Unicode*)data_) == 0x07 ) )
{
m_pImpl->finishParagraph(m_pImpl->GetTopContextOfType(CONTEXT_PARAGRAPH));
}
else
{
......
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