https://bugs.documentfoundation.org/show_bug.cgi?id=58194

--- Comment #15 from Kevin Suo <[email protected]> ---
I think it's in DocxAttributeOutput::FormatLRSpace.
sw/source/filter/ww8/docxattributeoutput.cxx:9301
https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/docxattributeoutput.cxx?r=b5c616d1#9301

where currently it only checks for GetTextFirstLineOffset():
        sal_Int32 const nFirstLineAdjustment =
pLRSpace->GetTextFirstLineOffset();
        if (nFirstLineAdjustment > 0)
            pLRSpaceAttrList->add( FSNS( XML_w, XML_firstLine ),
OString::number( nFirstLineAdjustment ) );

I think it should also be checking the pLRSpace->IsAutoFirst(), and if true,
then nFirstLineAdjustment should be calculated the same way as what we have
done in sw/source/core/text/itrcrsr.cxx:250.
https://opengrok.libreoffice.org/xref/core/sw/source/core/text/itrcrsr.cxx?r=0e4bcbb6#250

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to