[Libreoffice-bugs] [Bug 94009] FILESAVE: DOCX - Margins not preserve

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 3 18:42:04 UTC 2018


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

--- Comment #12 from Justin L <jluth at mail.com> ---
Created attachment 144642
  --> https://bugs.documentfoundation.org/attachment.cgi?id=144642&action=edit
0pgMar.odt: minimal reproducer test when saving to .doc or .docx

I think the problem is in SW code handling sections, because writerfilter
passes the top margin property all the way to unostyles.cxx. Likely, because
everything is a default value, the property isn't being SET, and so is never
exported.

The problem is avoidable by forcing a non-default value in PropertyMap.cxx
-Insert( PROP_TOP_MARGIN, uno::makeAny( std::max<sal_Int32>(nTopMargin, 0) ) );
+Insert( PROP_TOP_MARGIN, uno::makeAny( std::max<sal_Int32>(nTopMargin, 1) ) );

-- 
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/20180903/40b62c4f/attachment.html>


More information about the Libreoffice-bugs mailing list