[Libreoffice-bugs] [Bug 129430] FILESAVE: Saving Impress file to PPTX changes line spacing

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 20 11:15:32 UTC 2019


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

--- Comment #4 from Pieter van Oostrum <pieter at vanoostrum.org> ---
It appears that PPT does not have the option 'At Least' for line spacing. It
only has proportional (a:spcPct) and fixed (a:spcPts). So on import a:spcPts is
always converted to LineSpacingMode::FIX, although there is a test in
textspacing.hxx TextSpacing() for bExactValue, but this is set to true in the
import.

On export, the value is always output as fixed in DrawingML::WriteLinespacing,
as there is no other choice.

So there will always be a loss of information.

I would propose to convert LineSpacingMode::MINIMUM to a fixed linespace in the
PPT file with a value that is the maximum of the supplied value, and the value
for single line spacing. That seems to me the best approximation.
It is this code in DrawingML::WriteLinespacing

    else
    {
        mpFS->singleElementNS( XML_a, XML_spcPts,
                               XML_val,
OString::number(std::lround(rSpacing.Height / 25.4 * 72)));
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191220/93c4e88f/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list