Hi,
I am new to the LibreOffice code, and am trying to fix a regression I
encountered with headers in a .doc file, reported as fdo#56513
Using gdb I traced the problem back to code in
wwSectionManager::GetPageULData in
sw/source/filter/ww8/ww8par6.cxx.
This code checks whether the first page in the section has a header with
the condition:
(rSection.maSep.grpfIhdt & WW8_HEADER_FIRST) !=0
From experimenting with Word 2010 output, I see that this bit is set
only if the first page header does not have "Link to Previous" selected
in Word. If "Link to Previous" is selected (the default for sections
other than the first section), then this logic breaks, and the page top
margin is calculated wrongly for the first page in the section.
Consequently (re)export to .doc will decide that the two page styles in
this section do not match, resulting in the headers from the second page
style in the section not being exported to .doc
Anyone know about this, or want to review the patch I attached to that item?
Thanks,
Luke.
Context
- Fixing a .doc header regression · Luke Deller
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.